mirror of
https://github.com/YunoHost-Apps/moodle_ynh.git
synced 2024-09-03 19:46:23 +02:00
Fix (#47)
This commit is contained in:
parent
193b296277
commit
947ca7126f
4 changed files with 6 additions and 14 deletions
|
@ -40,7 +40,7 @@ ynh_print_info --message="Declaring files to be backed up..."
|
|||
|
||||
ynh_backup --src_path="$final_path"
|
||||
|
||||
ynh_backup --src_path="$data_path"
|
||||
ynh_backup --src_path="$data_path" --is_big
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE NGINX CONFIGURATION
|
||||
|
|
|
@ -120,7 +120,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
|||
#=================================================
|
||||
|
||||
mkdir -p $data_path
|
||||
chown -R $app:www-data "$data_path"
|
||||
chown -R $app:www-data $data_path
|
||||
|
||||
#=================================================
|
||||
# SETUP APPLICATION
|
||||
|
|
|
@ -67,12 +67,12 @@ ynh_script_progression --message="Restoring Moodle main directory..." --weight=1
|
|||
|
||||
ynh_restore_file --origin_path=$final_path
|
||||
|
||||
ynh_restore_file --origin_path=$data_path --not_mandatory
|
||||
|
||||
# Restore permissions on app files
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
ynh_restore_file --origin_path=$data_path
|
||||
|
||||
chown -R $app:www-data $data_path
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -137,15 +137,7 @@ ynh_script_progression --message="Adding cron job..." --weight=4
|
|||
|
||||
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
# SECURE FILES AND DIRECTORIES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Securing files and directories..." --weight=1
|
||||
|
||||
# Set permissions on app files
|
||||
chown -R $app:www-data $data_path
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
|
|
Loading…
Add table
Reference in a new issue