Skip to content

Commit f50de89

Browse files
cloudstack-setup-databases: fix mode and group of key file (apache#10466)
1 parent f017985 commit f50de89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup/bindir/cloud-setup-databases.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,8 @@ for example:
402402
except IOError as e:
403403
msg = "Failed to save management server secret key file %s due to %s, also please check the default umask"%(self.encryptionKeyFile, e.strerror)
404404
self.errorAndExit(msg)
405+
os.chmod(self.encryptionKeyFile, 0o640)
406+
shutil.chown(self.encryptionKeyFile, user=None, group="cloud")
405407

406408
def formatEncryptResult(value):
407409
return 'ENC(%s)'%value

0 commit comments

Comments
 (0)