diff options
author | Simon Rettberg | 2015-10-27 11:14:03 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-10-27 11:14:03 +0100 |
commit | 5c14b1f49f5ca7ba55673f27b30454e4b01fdfdb (patch) | |
tree | a5277a2a05307a64a4c36bbfe5924bab24d05499 /satellit_installer/includes/90-set_directory_permissions.inc | |
parent | [SSPS] Update sudo rules (diff) | |
download | setup-scripts-5c14b1f49f5ca7ba55673f27b30454e4b01fdfdb.tar.gz setup-scripts-5c14b1f49f5ca7ba55673f27b30454e4b01fdfdb.tar.xz setup-scripts-5c14b1f49f5ca7ba55673f27b30454e4b01fdfdb.zip |
[SSPS] Move ldadp log dir to /var/log/ldadp
Diffstat (limited to 'satellit_installer/includes/90-set_directory_permissions.inc')
-rw-r--r-- | satellit_installer/includes/90-set_directory_permissions.inc | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/satellit_installer/includes/90-set_directory_permissions.inc b/satellit_installer/includes/90-set_directory_permissions.inc index 1fb2db4..baf6532 100644 --- a/satellit_installer/includes/90-set_directory_permissions.inc +++ b/satellit_installer/includes/90-set_directory_permissions.inc @@ -38,26 +38,18 @@ set_directory_permissions() { cp -p "$WWWDIR"/slx-admin/config.php.example "$WWWDIR"/slx-admin/config.php chmod 600 "$WWWDIR"/slx-admin/config.php - mkdir -p -m 755 "$LDADPDIR" 2>/dev/null - chmod 755 "$LDADPDIR" 2>/dev/null # if already there - chown root:root "$LDADPDIR" # Prob. unnecessary, but to be sure. - chown -R taskmanager:ldadp "$LDADPDIR"/* # Stuff beyond, but ... - chown root:root "$LDADPDIR"/ldadp # ... not the binary. - - mkdir -m 755 /var/log/ldadp 2>/dev/null # For th' loggin' - chown ldadp:root /var/log/ldadp - - mkdir -p -m 750 "$LDADPDIR"/configs 2>/dev/null - chmod 750 "$LDADPDIR"/configs 2>/dev/null # if already there - chown -R taskmanager:ldadp "$LDADPDIR"/configs - - mkdir -p -m 755 "$LDADPDIR"/pid 2>/dev/null - chmod 755 "$LDADPDIR"/pid 2>/dev/null # if already there - chown -R ldadp: "$LDADPDIR"/pid - - mkdir -p -m 750 "$LDADPDIR"/logs 2>/dev/null - chmod 750 "$LDADPDIR"/logs 2>/dev/null # if already there - chown -R ldadp:root "$LDADPDIR"/logs + # ldadp dirs + mkdir -p "$LDADPDIR" "$LDADPDIR/configs" "$LDADPDIR/pid" "/var/log/ldadp" + chmod 755 "$LDADPDIR" + chown root:root "$LDADPDIR" # Prob. unnecessary, but to be sure. + chmod 750 "$LDADPDIR/configs" + chown -R taskmanager:ldadp "$LDADPDIR/configs" + chmod 755 "$LDADPDIR/pid" 2>/dev/null # if already there + chown -R ldadp:root "$LDADPDIR/pid" + chmod 750 "/var/log/ldadp" + chown -R ldadp:adm "/var/log/ldadp" + # Make sure we spare the binary + chown root:root "$LDADPDIR/ldadp" # ... not the binary. mkdir -p -m 755 /opt/openslx/proxy 2>/dev/null chmod 755 /opt/openslx/proxy 2>/dev/null # if already there |