diff --git a/src/freedombone-app-friendica b/src/freedombone-app-friendica index ac806616..eb4f7d0b 100755 --- a/src/freedombone-app-friendica +++ b/src/freedombone-app-friendica @@ -242,7 +242,7 @@ function restore_local_friendica { if [ ! -d $friendica_dir/store/[data]/smarty3 ]; then mkdir -p $friendica_dir/store/[data]/smarty3 fi - chmod 777 $friendica_dir/store/[data]/smarty3 + chmod 1777 $friendica_dir/store/[data]/smarty3 chown -R www-data:www-data $friendica_dir/* if [ -d $temp_restore_dir ]; then rm -rf $temp_restore_dir @@ -276,7 +276,7 @@ function restore_remote_friendica { if [ ! -d /var/www/${FRIENDICA_DOMAIN_NAME}/htdocs/store/[data]/smarty3 ]; then mkdir -p /var/www/${FRIENDICA_DOMAIN_NAME}/htdocs/store/[data]/smarty3 fi - chmod 777 /var/www/${FRIENDICA_DOMAIN_NAME}/htdocs/store/[data]/smarty3 + chmod 1777 /var/www/${FRIENDICA_DOMAIN_NAME}/htdocs/store/[data]/smarty3 chown -R www-data:www-data /var/www/${FRIENDICA_DOMAIN_NAME}/htdocs/* fi if [ -d /root/tempfriendica ]; then @@ -531,11 +531,11 @@ function install_friendica { fi if [ ! -d "$FRIENDICA_PATH/store/[data]/smarty3" ]; then mkdir "$FRIENDICA_PATH/store/[data]/smarty3" - chmod 777 "$FRIENDICA_PATH/store/[data]/smarty3" + chmod 1777 "$FRIENDICA_PATH/store/[data]/smarty3" fi - chmod 777 $FRIENDICA_PATH/view/tpl + chmod 1777 $FRIENDICA_PATH/view/tpl chown -R www-data:www-data "$FRIENDICA_PATH/store" - chmod 777 $FRIENDICA_PATH/view/tpl/smarty3 + chmod 1777 $FRIENDICA_PATH/view/tpl/smarty3 # Ensure that the database gets backed up locally, if remote # backups are not being used diff --git a/src/freedombone-app-hubzilla b/src/freedombone-app-hubzilla index 3adde17f..f9ebb32a 100755 --- a/src/freedombone-app-hubzilla +++ b/src/freedombone-app-hubzilla @@ -233,7 +233,7 @@ function restore_local_hubzilla { if [ ! -d $hubzilla_dir/store/[data]/smarty3 ]; then mkdir -p $hubzilla_dir/store/[data]/smarty3 fi - chmod 777 $hubzilla_dir/store/[data]/smarty3 + chmod 1777 $hubzilla_dir/store/[data]/smarty3 chown -R www-data:www-data $hubzilla_dir/* if [ -d $temp_restore_dir ]; then rm -rf $temp_restore_dir @@ -267,7 +267,7 @@ function restore_remote_hubzilla { if [ ! -d /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs/store/[data]/smarty3 ]; then mkdir -p /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs/store/[data]/smarty3 fi - chmod 777 /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs/store/[data]/smarty3 + chmod 1777 /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs/store/[data]/smarty3 chown -R www-data:www-data /var/www/${HUBZILLA_DOMAIN_NAME}/htdocs/* fi if [ -d /root/temphubzilla ]; then @@ -526,11 +526,11 @@ function install_hubzilla { fi if [ ! -d "$HUBZILLA_PATH/store/[data]/smarty3" ]; then mkdir "$HUBZILLA_PATH/store/[data]/smarty3" - chmod 777 "$HUBZILLA_PATH/store/[data]/smarty3" + chmod 1777 "$HUBZILLA_PATH/store/[data]/smarty3" fi - chmod 777 $HUBZILLA_PATH/view/tpl + chmod 1777 $HUBZILLA_PATH/view/tpl chown -R www-data:www-data "$HUBZILLA_PATH/store" - chmod 777 $HUBZILLA_PATH/view/tpl/smarty3 + chmod 1777 $HUBZILLA_PATH/view/tpl/smarty3 # Ensure that the database gets backed up locally, if remote # backups are not being used diff --git a/src/freedombone-app-lychee b/src/freedombone-app-lychee index fcb969c3..1840fd8e 100755 --- a/src/freedombone-app-lychee +++ b/src/freedombone-app-lychee @@ -404,8 +404,8 @@ function install_lychee { function_check configure_php configure_php - chmod -R 777 /var/www/$LYCHEE_DOMAIN_NAME/htdocs/uploads/ - chmod -R 777 /var/www/$LYCHEE_DOMAIN_NAME/htdocs/data/ + chmod -R 1777 /var/www/$LYCHEE_DOMAIN_NAME/htdocs/uploads/ + chmod -R 1777 /var/www/$LYCHEE_DOMAIN_NAME/htdocs/data/ chown -R www-data:www-data /var/www/$LYCHEE_DOMAIN_NAME/htdocs chmod 755 /var/www/$LYCHEE_DOMAIN_NAME/htdocs/uploads/big/index.html diff --git a/src/freedombone-app-postactiv b/src/freedombone-app-postactiv index ea7f9b7c..75dbdf1a 100755 --- a/src/freedombone-app-postactiv +++ b/src/freedombone-app-postactiv @@ -531,7 +531,7 @@ function install_postactiv_main { chmod a+w /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/file chown -R www-data:www-data /var/www/$POSTACTIV_DOMAIN_NAME/htdocs chmod +x /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/scripts/maildaemon.php - chmod 777 /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/extlib/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php + chmod 1777 /var/www/$POSTACTIV_DOMAIN_NAME/htdocs/extlib/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php function_check postactiv_create_database postactiv_create_database