1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/moodle_ynh.git synced 2024-09-03 19:46:23 +02:00

Protect final_path

This commit is contained in:
ericgaspar 2021-03-24 20:48:03 +01:00
parent 1b6ad3f87e
commit f764d11977
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 3 additions and 0 deletions

View file

@ -118,6 +118,7 @@ ynh_app_setting_set --app=$app --key=data_path --value=$data_path
mkdir -p $data_path
chown -R $app: $data_path
chown -R $app: $final_path
chmod o-rwx $final_path
#=================================================
# SETUP APPLICATION

View file

@ -77,6 +77,7 @@ ynh_script_progression --message="Restoring user rights..."
# Restore permissions on app files
chown -R $app: $final_path
chown -R $app: $data_path
chmod o-rwx $final_path
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION

View file

@ -165,6 +165,7 @@ ynh_script_progression --message="Securing files and directories..." --weight=1
# Set permissions on app files
chown -R $app: $data_path
chown -R $app: $final_path
chmod o-rwx $final_path
#=================================================
# RELOAD NGINX