1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pepettes_ynh.git synced 2024-09-03 19:56:35 +02:00

Reorder steps to fix restore

This commit is contained in:
yalh76 2021-03-11 20:28:54 +01:00
parent 1a0f985e51
commit 682a86b9ad

View file

@ -66,15 +66,6 @@ ynh_script_progression --message="Recreating the dedicated system user..." --wei
# Create the dedicated user (if not existing)
ynh_system_user_create --username=$app --home_dir="$final_path"
#=================================================
# RESTORE USER RIGHTS
#=================================================
ynh_script_progression --message="Restoring user rights..."
# Restore permissions on app files
chown -R $app:www-data $final_path
chmod o=--- $final_path
#=================================================
# SPECIFIC RESTORATION
#=================================================
@ -100,6 +91,15 @@ pushd $final_path
chown -R $app:www-data /var/log/$app
popd
#=================================================
# RESTORE USER RIGHTS
#=================================================
ynh_script_progression --message="Restoring user rights..."
# Restore permissions on app files
chown -R $app:www-data $final_path
chmod o=--- $final_path
#=================================================
# RESTORE SYSTEMD
#=================================================