diff --git a/scripts/backup b/scripts/backup index 01bf979..4568644 100755 --- a/scripts/backup +++ b/scripts/backup @@ -42,12 +42,6 @@ ynh_print_info --message="Declaring files to be backed up..." ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" -#================================================= -# BACKUP LOGROTATE -#================================================= - -ynh_backup --src_path="/etc/logrotate.d/$app" - #================================================= # BACKUP SOGo CONFIGURATION #================================================= diff --git a/scripts/restore b/scripts/restore index ef99a29..1d435f6 100755 --- a/scripts/restore +++ b/scripts/restore @@ -94,8 +94,7 @@ systemctl enable $app.service --quiet # RESTORE THE LOGROTATE CONFIGURATION #================================================= ynh_script_progression --message="Restoring the logrotate configuration..." --weight=1 - -ynh_restore_file --origin_path="/etc/logrotate.d/$app" --nonappend +ynh_use_logrotate --logfile="/var/log/$app/sogo.log" --nonappend #================================================= # INTEGRATE SERVICE IN YUNOHOST diff --git a/scripts/upgrade b/scripts/upgrade index 868b683..14480f7 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -152,7 +152,7 @@ if ! ynh_permission_exists --permission sync_client; then || ynh_print_warn --message="Your file /etc/ssowat/""conf.json.persistent doesn't respect the json syntax. The config file wasn't cleaned. Please clean it manually." else ynh_permission_update --permission="sync_client" --add='visitors' --label="Sync client" --protected=true --show_tile=false - ynh_permission_url --permission "sync_client" --auth_header=false\ + ynh_permission_url --permission "sync_client" --auth_header=false\ --add_url="/Microsoft-Server-ActiveSync" "/principals" "/.well-known/caldav" "/.well-known/carddav" fi @@ -164,7 +164,7 @@ fi ynh_script_progression --message="Upgrading logrotate configuration..." --weight=1 # Use logrotate to manage app-specific logfile(s) -ynh_use_logrotate --non-append +ynh_use_logrotate --logfile="/var/log/$app/sogo.log" --nonappend #================================================= # INTEGRATE SERVICE IN YUNOHOST