From b7c3625e7c8060a278d58d51b9f8586b4c18bc75 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 12 Jan 2021 23:12:38 +0100 Subject: [PATCH] Fix --- scripts/backup | 2 +- scripts/restore | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/backup b/scripts/backup index 5de792a..6ae700f 100755 --- a/scripts/backup +++ b/scripts/backup @@ -61,7 +61,7 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" # BACKUP LOGROTATE #================================================= -#ynh_backup --src_path="/etc/logrotate.d/$app" +ynh_backup --src_path="/etc/logrotate.d/$app" #================================================= # BACKUP GALÈNE LOG diff --git a/scripts/restore b/scripts/restore index 386a079..3733036 100755 --- a/scripts/restore +++ b/scripts/restore @@ -94,7 +94,7 @@ systemctl enable coturn-$app.service --quiet # RESTORE THE LOGROTATE CONFIGURATION #================================================= -#ynh_restore_file --origin_path="/var/log/$app" +ynh_restore_file --origin_path="/var/log/$app" #================================================= # RESTORE USER RIGHTS @@ -108,7 +108,7 @@ chmod -R 755 $final_path chmod u=rwX,g=rX,o= -R /etc/$app chmod 770 $final_path/Coturn_config_rotate.sh setfacl -R -m user:turnserver:rX /etc/$app -#setfacl -R -m user:turnserver:rwX /var/log/$app +setfacl -R -m user:turnserver:rwX /var/log/$app #================================================= # INTEGRATE SERVICE IN YUNOHOST @@ -198,6 +198,12 @@ ynh_store_file_checksum --file="$coturn_config_path" ynh_exec_warn_less yunohost firewall allow Both $turnserver_tls_port ynh_exec_warn_less yunohost firewall allow Both $turnserver_alt_tls_port +#================================================= +# RESTORE THE LOGROTATE CONFIGURATION +#================================================= + +ynh_restore_file --origin_path="/etc/logrotate.d/$app" + #================================================= # GENERIC FINALIZATION #=================================================