diff --git a/scripts/restore b/scripts/restore index 59b02f5..3e88821 100644 --- a/scripts/restore +++ b/scripts/restore @@ -82,16 +82,6 @@ ynh_script_progression --message="Restoring the app main directory..." ynh_restore_file --origin_path="$final_path" -#================================================= -# RESTORE USER RIGHTS -#================================================= -ynh_script_progression --message="Restoring user rights..." - -# Restore permissions on app files -chown -R root: $final_path -usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,netdev "$app" - - #================================================= # SPECIFIC RESTORATION #================================================= @@ -142,6 +132,15 @@ ynh_script_progression --message="Configuring X11..." ynh_replace_string "allowed_users=console" "allowed_users=anybody" /etc/X11/Xwrapper.config +#================================================= +# RESTORE USER RIGHTS +#================================================= +ynh_script_progression --message="Restoring user rights..." + +# Restore permissions on app files +chown -R root: $final_path +usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,netdev "$app" + #================================================= # INTEGRATE SERVICE IN YUNOHOST #=================================================