From aa47f27d9157dfacb3fe9eb5d0617e5e230e12a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 19 May 2021 09:05:40 +0200 Subject: [PATCH] Change where the log directory is created. --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index e968469..ead71ed 100755 --- a/scripts/restore +++ b/scripts/restore @@ -102,6 +102,7 @@ yunohost service add $app --description="Wetty Web Terminal service" --log="/var #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 +mkdir -p "/var/log/$app/" ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Server started" #================================================= @@ -109,7 +110,6 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap #================================================= ynh_script_progression --message="Restoring the logrotate configuration..." -mkdir -p "/var/log/$app/" ynh_restore_file --origin_path="/etc/logrotate.d/$app" #=================================================