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:
parent
edad028325
commit
adbbcee699
3 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue