diff --git a/postgres-appliance/bootstrap/clone_with_wale.py b/postgres-appliance/bootstrap/clone_with_wale.py index e8d31962d..372e86f6d 100755 --- a/postgres-appliance/bootstrap/clone_with_wale.py +++ b/postgres-appliance/bootstrap/clone_with_wale.py @@ -176,6 +176,10 @@ def run_clone_from_s3(options): envdir = get_clone_envdir() with open(os.path.join(envdir, update_envdir), 'w') as f: f.write(env[update_envdir]) + + ret = subprocess.call(['chmod', '0700', options.datadir]) + if ret != 0: + raise Exception("Permission adjustment of data dir exited with code {0}".format(ret)) return 0