1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yunomonitor_ynh.git synced 2024-09-03 17:46:11 +02:00

Update restore

This commit is contained in:
ericgaspar 2021-08-23 11:59:51 +02:00
parent 917d2f0592
commit 04b6962b64

View file

@ -51,7 +51,7 @@ ynh_install_app_dependencies $pkg_dependencies
ynh_script_progression --message="Recreating the dedicated system user..." --weight=1
# Create the dedicated user (if not existing)
ynh_system_user_create --username=$app
ynh_system_user_create --username=$app --home_dir="$final_path"
#=================================================
# RESTORE FILES
@ -65,8 +65,9 @@ ynh_restore
#=================================================
# Restore permissions on app files
chown -R root: $final_path
chown $app:$app $final_path/yunomonitor.py
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod u+x $final_path/yunomonitor.py
#=================================================