Fix shared/httpd www data dir permissions

This commit is contained in:
cytopia
2018-03-05 01:37:03 +01:00
parent 30a0d45bad
commit b104211a0a

View File

@@ -138,6 +138,21 @@ fix_mds_permissions "${MY_USER}" "${MY_GROUP}" "${DEBUG_LEVEL}"
set_mds_settings "MYSQL_BACKUP_USER" "MYSQL_BACKUP_PASS" "MYSQL_BACKUP_HOST" "${DEBUG_LEVEL}"
###
### Fix mountpoint permissions
###
if [ ! -d "/shared/backups" ]; then
run "mkdir -p /shared/backups"
fi
if [ ! -d "/shared/httpd" ]; then
run "mkdir -p /shared/httpd"
fi
run "chown ${MY_USER}:${MY_GROUP} /shared/backups"
run "chown ${MY_USER}:${MY_GROUP} /shared/httpd"
run "chmod 0755 /shared/backups"
run "chmod 0755 /shared/httpd"
###
### Startup
###