Skip to content

Commit 7121d00

Browse files
committed
Fix file permission when restoring pg
1 parent 2ebf1e0 commit 7121d00

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

postgres-appliance/bootstrap/maybe_pg_upgrade.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def perform_pitr(postgresql, cluster_version, bin_version, config):
3232
config[config['method']]['command'] = 'true'
3333
try:
3434
if bin_version == cluster_version:
35+
os.chmod('/home/postgres/pgdata/pgroot/data', 0o700)
3536
if not postgresql.bootstrap.bootstrap(config):
3637
raise Exception('Point-in-time recovery failed')
3738
elif not postgresql.start_old_cluster(config, cluster_version):

0 commit comments

Comments
 (0)