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:
parent
1b6ad3f87e
commit
f764d11977
3 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue