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:
parent
10f74fd91c
commit
7685a7d6c4
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue