Keep remote mail setup permissions consistent
This commit is contained in:
1 parent
4a955c7095
commit
974d31779b
2 files changed
+2
No files matched your search
@@ -16,6 +16,7 @@ work=$(mktemp -d /var/tmp/coulobre-node.XXXXXXXX)
|
|||||||
trap 'rm -rf -- "$work"' EXIT
|
trap 'rm -rf -- "$work"' EXIT
|
||||||
cd "$work"
|
cd "$work"
|
||||||
tar --extract --gzip --no-same-owner --no-same-permissions
|
tar --extract --gzip --no-same-owner --no-same-permissions
|
||||||
|
umask 022
|
||||||
/usr/bin/flock -n /run/lock/coulobre-bootstrap.lock \\
|
/usr/bin/flock -n /run/lock/coulobre-bootstrap.lock \\
|
||||||
/usr/bin/python3 -m deploy.panel_installer.remote
|
/usr/bin/python3 -m deploy.panel_installer.remote
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ def configure():
|
|||||||
if not os.path.lexists(keys):
|
if not os.path.lexists(keys):
|
||||||
keys.mkdir(mode=0o750)
|
keys.mkdir(mode=0o750)
|
||||||
os.chown(keys, 0, signer.gr_gid)
|
os.chown(keys, 0, signer.gr_gid)
|
||||||
|
keys.chmod(0o750)
|
||||||
engine.root_directory(keys)
|
engine.root_directory(keys)
|
||||||
if (
|
if (
|
||||||
keys.stat().st_gid != signer.gr_gid
|
keys.stat().st_gid != signer.gr_gid
|
||||||
|
|||||||
Reference in new issue
Block a user