1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/moodle_ynh.git synced 2024-09-03 19:46:23 +02:00
This commit is contained in:
Éric Gaspar 2021-06-17 23:15:52 +02:00 committed by GitHub
parent 193b296277
commit 947ca7126f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 14 deletions

View file

@ -40,7 +40,7 @@ ynh_print_info --message="Declaring files to be backed up..."
ynh_backup --src_path="$final_path" ynh_backup --src_path="$final_path"
ynh_backup --src_path="$data_path" ynh_backup --src_path="$data_path" --is_big
#================================================= #=================================================
# BACKUP THE NGINX CONFIGURATION # BACKUP THE NGINX CONFIGURATION

View file

@ -120,7 +120,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#================================================= #=================================================
mkdir -p $data_path mkdir -p $data_path
chown -R $app:www-data "$data_path" chown -R $app:www-data $data_path
#================================================= #=================================================
# SETUP APPLICATION # SETUP APPLICATION

View file

@ -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=$final_path
ynh_restore_file --origin_path=$data_path --not_mandatory
# Restore permissions on app files
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path" chown -R $app:www-data "$final_path"
ynh_restore_file --origin_path=$data_path
chown -R $app:www-data $data_path chown -R $app:www-data $data_path
#================================================= #=================================================

View file

@ -137,15 +137,7 @@ ynh_script_progression --message="Adding cron job..." --weight=4
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
#================================================= chown -R $app:www-data "$final_path"
# 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
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX