diff --git a/scripts/_common.sh b/scripts/_common.sh index de42b0e..b5dbc60 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,6 +5,7 @@ #================================================= NODEJS_VERSION=10 + # dependencies used by the app pkg_dependencies="graphicsmagick ffmpeg ghostscript" diff --git a/scripts/restore b/scripts/restore index e97a5ca..264c294 100755 --- a/scripts/restore +++ b/scripts/restore @@ -106,6 +106,9 @@ systemctl enable $app.service --quiet #================================================= ynh_script_progression --message="Restoring the logrotate configuration..." --time --weight=1 +# Use logrotate to manage application logfile(s) +ynh_use_logrotate + ynh_restore_file --origin_path="/etc/logrotate.d/$app" #=================================================