From a757bf1243b93c3e3226cb886252d552cbe6edbd Mon Sep 17 00:00:00 2001 From: Chris Vogel Date: Thu, 25 Apr 2024 12:47:53 +0200 Subject: [PATCH] minor correction in restore --- scripts/restore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index 914f0ff..c3de18a 100755 --- a/scripts/restore +++ b/scripts/restore @@ -58,9 +58,9 @@ mkdir -p $data_dir ynh_script_progression --message="Restoring log directory and logfiles..." --weight=1 ynh_restore_file --origin_path="/var/log/$app" --not_mandatory mkdir -p -m755 "/var/log/$app" -touch "/var/log/$app/$app" +touch "/var/log/$app/$app.log" # logfile contains possibly the secret setup URL -chmod 640 "/var/log/$app/$app" +chmod 640 "/var/log/$app/$app.log" # RESTORE FAIL2BAN CONFIGURATION ynh_script_progression --message="Restoring the Fail2Ban configuration..." --weight=2