1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/coturn_ynh.git synced 2024-09-03 18:16:32 +02:00

Update restore

This commit is contained in:
ericgaspar 2021-02-01 12:14:32 +01:00
parent 10f74fd91c
commit 7685a7d6c4
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -46,6 +46,12 @@ ynh_script_progression --message="Restoring Coturn Datapath..." --weight=1
ynh_restore_file --origin_path="/home/yunohost.app/$app"
#=================================================
# RESTORE LOG
#=================================================
ynh_restore_file --origin_path="/var/log/$app"
#=================================================
# RECREATE THE DEDICATED USER
#=================================================
@ -77,7 +83,7 @@ fi
# Restore permissions on app files
# Set permissions to app files
chown root: -R "/home/yunohost.app/$app"
chown root: -R /home/yunohost.app/$app
chown -R turnserver:root /var/log/$app
chown turnserver:root /etc/turnserver.conf
setfacl -R -m user:turnserver:rwX /var/log/$app
@ -122,12 +128,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action=start --log_path="/var/log/$app/$app.log"
#=================================================
# RESTORE THE LOGROTATE CONFIGURATION
#=================================================
ynh_restore_file --origin_path="/var/log/$app"
#=================================================
# END OF SCRIPT
#=================================================