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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c5168ad0ac52d8c3087b0e176f55df074a0e68ab71cfff2fa826bcc00554f20
|
4
|
+
data.tar.gz: 1efbf237b1c20ff978b1c5e7b26a3f478dc1f38e013641d3ad3dce313ac7b3d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2019-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|