manageiq-appliance_console 5.0.1 → 5.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 794afb4e9972783bd83a8ca135242452c225562680380c80aa1f40ff78c05d6a
4
- data.tar.gz: 81cd28c1eeb628e7b7d02eedc53f4188b61a83e7aa8594193af018170476df6a
3
+ metadata.gz: 9c5168ad0ac52d8c3087b0e176f55df074a0e68ab71cfff2fa826bcc00554f20
4
+ data.tar.gz: 1efbf237b1c20ff978b1c5e7b26a3f478dc1f38e013641d3ad3dce313ac7b3d3
5
5
  SHA512:
6
- metadata.gz: 72c20ebd526ad7689fadbe44d9037d9204ece79beb536439ce517abbb6d91080f7d1870c5858e84ecf66a9c19c0b6a0fdfeb43e11feda37ae820031d7058c08d
7
- data.tar.gz: 166462b2b52d1fb72335016c4bc79bb228190d9b9bc459530925918adbab0833ffd0a429cf369054c703b86c4ba740e56c4ae0a4be8d29367cffa5d612b1068d
6
+ metadata.gz: cdf1815a6d86a9dca9cd8abf65d7de9c44967c9276ebd962caecf0a218e006a8c82100387d28189d52fb4ffd34cf692d96affc8d22a9c017070a26082e982cad
7
+ data.tar.gz: 1d93ef6b02710ee53f0b932436953434cdae061551c530bcc8fe2a195cc0c051791c4147ec2f98aeb5f649abb0becf5d2247b17c1516c52fa2a3499752cf160f
@@ -62,6 +62,7 @@ module ApplianceConsole
62
62
  stop_repmgrd
63
63
  initialize_postgresql_disk if disk
64
64
  PostgresAdmin.prep_data_directory if disk || resync_data
65
+ relabel_postgresql_dir
65
66
  save_database_yml
66
67
  create_config_file(standby_host) &&
67
68
  write_pgpass_file &&
@@ -162,8 +163,18 @@ module ApplianceConsole
162
163
  :volume_group_name => PostgresAdmin.volume_group_name,
163
164
  :filesystem_type => PostgresAdmin.database_disk_filesystem,
164
165
  :logical_volume_path => PostgresAdmin.logical_volume_path).setup
166
+
167
+ # if we mounted the disk onto the postgres user's home directory, fix the permissions
168
+ if PostgresAdmin.mount_point.to_s == "/var/lib/pgsql"
169
+ FileUtils.chown(PostgresAdmin.user, PostgresAdmin.group, "/var/lib/pgsql")
170
+ FileUtils.chmod(0o700, "/var/lib/pgsql")
171
+ end
165
172
  end
166
173
  end
174
+
175
+ def relabel_postgresql_dir
176
+ AwesomeSpawn.run!("/sbin/restorecon -R -v #{PostgresAdmin.mount_point}")
177
+ end
167
178
  end # class DatabaseReplicationStandby < DatabaseReplication
168
179
  end # module ApplianceConsole
169
180
  end
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module ApplianceConsole
3
- VERSION = '5.0.1'.freeze
3
+ VERSION = '5.0.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-appliance_console
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-08 00:00:00.000000000 Z
11
+ date: 2019-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord