diff options
author | Simon Rettberg | 2014-10-19 20:37:55 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-10-19 20:37:55 +0200 |
commit | fdc0eb30101d1505ac5ce674a18a14869f3105d0 (patch) | |
tree | d46ec0a9488ba6524acc8bdbcf7ed0d0f8735063 /satellit_installer/includes/90-set_directory_permissions.inc | |
parent | [SSPS] Also generating an sshd host ecdsa key (diff) | |
download | setup-scripts-fdc0eb30101d1505ac5ce674a18a14869f3105d0.tar.gz setup-scripts-fdc0eb30101d1505ac5ce674a18a14869f3105d0.tar.xz setup-scripts-fdc0eb30101d1505ac5ce674a18a14869f3105d0.zip |
Add apt config for unattended upgrades, refactor global variables a bit
Diffstat (limited to 'satellit_installer/includes/90-set_directory_permissions.inc')
-rw-r--r-- | satellit_installer/includes/90-set_directory_permissions.inc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/satellit_installer/includes/90-set_directory_permissions.inc b/satellit_installer/includes/90-set_directory_permissions.inc index ec8824a..fdb2b54 100644 --- a/satellit_installer/includes/90-set_directory_permissions.inc +++ b/satellit_installer/includes/90-set_directory_permissions.inc @@ -23,22 +23,22 @@ set_directory_permissions() { chmod 775 "$OPENSLXSRVDIR" 2>/dev/null # if already there chown -R taskmanager:root "$OPENSLXSRVDIR" - mkdir -p -m 755 "$OPENSLXSRVDIR"/www 2>/dev/null - chmod 755 "$OPENSLXSRVDIR"/www 2>/dev/null # if already there - chown -R www-data:taskmanager "$OPENSLXSRVDIR"/www + mkdir -p -m 755 "$WWWDIR" 2>/dev/null + chmod 755 "$WWWDIR" 2>/dev/null # if already there + chown -R www-data:taskmanager "$WWWDIR" # mkdir -p -m 755 "$OPENSLXSRVDIR"/tftp/v4 2>/dev/null # mkdir -p -m 755 "$OPENSLXSRVDIR"/tftp/v6 2>/dev/null # chown -R taskmanager:root "$OPENSLXSRVDIR"/tftp - mkdir -p "$OPENSLXSRVDIR/www/boot" - chown -R taskmanager:www-data "$OPENSLXSRVDIR"/www/boot 2>/dev/null - chmod 755 "$OPENSLXSRVDIR"/www/boot 2>/dev/null + mkdir -p "$WWWDIR/boot" + chown -R taskmanager:www-data "$WWWDIR"/boot 2>/dev/null + chmod 755 "$WWWDIR"/boot 2>/dev/null - chown -R taskmanager: "$SYSLINUX6DIR"/* + chown -R taskmanager: "$TFTPDIR"/* - cp -p "$OPENSLXSRVDIR"/www/slx-admin/config.php.example "$OPENSLXSRVDIR"/www/slx-admin/config.php - chmod 600 "$OPENSLXSRVDIR"/www/slx-admin/config.php + 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 |