1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yeswiki_ynh.git synced 2024-09-03 18:05:56 +02:00

Block other users from accessing the $final_path

This commit is contained in:
Nils VAN ZUIJLEN 2021-04-16 14:03:40 +02:00
parent edad028325
commit adbbcee699
3 changed files with 9 additions and 0 deletions

View file

@ -168,6 +168,9 @@ ynh_replace_string --match_string=");"\
chown -R root: $final_path
chown -R $app $final_path/{cache,files,themes,tools,wakka.config.php}
chown $app:www-data $final_path
chmod o-rwx $final_path
#=================================================
# SETUP SSOWAT
#=================================================

View file

@ -75,6 +75,9 @@ ynh_system_user_create --username=$app
chown -R root: $final_path
chown -R $app $final_path/{cache,files,themes,tools,wakka.config.php}
chown $app:www-data $final_path
chmod o-rwx $final_path
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION
#=================================================

View file

@ -150,6 +150,9 @@ ynh_add_fpm_config --package="$extra_php_dependencies"
chown -R root: $final_path
chown -R $app $final_path/{cache,files,themes,tools,wakka.config.php}
chown $app:www-data $final_path
chmod o-rwx $final_path
#=================================================
# RELOAD NGINX
#=================================================