diff options
author | Christian Rößler | 2014-07-28 15:02:25 +0200 |
---|---|---|
committer | Christian Rößler | 2014-07-28 15:02:25 +0200 |
commit | dc31749b86131ac47a92d28b73215845127854d8 (patch) | |
tree | 5bdeb994258652e9e78696d0494c4f9df4334975 /satellit_installer/includes/90-set_directory_permissions.inc | |
parent | [SSPS] script dropper include: Reflected chandes in slx-admin/config.php (diff) | |
download | setup-scripts-dc31749b86131ac47a92d28b73215845127854d8.tar.gz setup-scripts-dc31749b86131ac47a92d28b73215845127854d8.tar.xz setup-scripts-dc31749b86131ac47a92d28b73215845127854d8.zip |
[SSPS] Some ugly permissions fixed
Diffstat (limited to 'satellit_installer/includes/90-set_directory_permissions.inc')
-rw-r--r-- | satellit_installer/includes/90-set_directory_permissions.inc | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/satellit_installer/includes/90-set_directory_permissions.inc b/satellit_installer/includes/90-set_directory_permissions.inc index a2de7d9..6721d74 100644 --- a/satellit_installer/includes/90-set_directory_permissions.inc +++ b/satellit_installer/includes/90-set_directory_permissions.inc @@ -6,42 +6,45 @@ set_directory_permissions() { mkdir -p -m 755 "$OPENSLXDIR" 2>/dev/null mkdir -p -m 755 "$OPENSLXDIR"/configs 2>/dev/null - chmod -R 755 "$OPENSLXDIR"/configs 2>/dev/null # if already there + chmod 755 "$OPENSLXDIR"/configs 2>/dev/null # if already there chown -R taskmanager:taskmanager "$OPENSLXDIR"/configs mkdir -p -m 755 "$OPENSLXDIR"/configs/modules 2>/dev/null - chmod -R 755 "$OPENSLXDIR"/configs/modules 2>/dev/null # if already there + chmod 755 "$OPENSLXDIR"/configs/modules 2>/dev/null # if already there chown -R taskmanager:taskmanager "$OPENSLXDIR"/configs/modules mkdir -p -m 755 "$OPENSLXDIR"/ipxe 2>/dev/null - chmod -R 755 "$OPENSLXDIR"/ipxe 2>/dev/null # if already there + chmod 755 "$OPENSLXDIR"/ipxe 2>/dev/null # if already there chown -R taskmanager:www-data "$OPENSLXDIR"/ipxe mkdir -p -m 755 "$OPENSLXSRVDIR" 2>/dev/null - chmod -R 775 "$OPENSLXSRVDIR" 2>/dev/null # if already there + chmod 775 "$OPENSLXSRVDIR" 2>/dev/null # if already there chown -R taskmanager:root "$OPENSLXSRVDIR" - mkdir -p -m 775 "$OPENSLXSRVDIR"/www 2>/dev/null - chmod -R 775 "$OPENSLXSRVDIR"/www 2>/dev/null # if already there + mkdir -p -m 755 "$OPENSLXSRVDIR"/www 2>/dev/null + chmod "$OPENSLXSRVDIR"/www 2>/dev/null # if already there chown -R www-data:taskmanager "$OPENSLXSRVDIR"/www + chown -R taskmanager:www-data "$OPENSLXSRVDIR"/www/boot 2>/dev/null + chmod "$OPENSLXSRVDIR"/www/boot 2>/dev/null + mkdir -p -m 755 "$OPENSLXSRVDIR"/www/boot 2>/dev/null - chmod -R 755 "$OPENSLXSRVDIR"/www/boot 2>/dev/null # if already there + chmod 755 "$OPENSLXSRVDIR"/www/boot 2>/dev/null # if already there chown -R taskmanager:www-data "$OPENSLXSRVDIR"/www/boot mkdir -p -m 755 "$LDADPDIR" 2>/dev/null - chmod -R 755 "$LDADPDIR" 2>/dev/null # if already there + chmod 755 "$LDADPDIR" 2>/dev/null # if already there chown -R taskmanager:ldadp "$LDADPDIR" mkdir -p -m 750 "$LDADPDIR"/configs 2>/dev/null - chmod -R 750 "$LDADPDIR"/configs 2>/dev/null # if already there + 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 -R 755 "$LDADPDIR"/pid 2>/dev/null # if already there + 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 -R 750 "$LDADPDIR"/logs 2>/dev/null # if already there + chmod 750 "$LDADPDIR"/logs 2>/dev/null # if already there chown -R ldadp:root "$LDADPDIR"/logs } |