From 17c58bc1de167eea5e8728f41f6de6edb566a0b4 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sat, 18 May 2019 17:03:29 +0200 Subject: [PATCH] Fix log permission --- scripts/install | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/install b/scripts/install index d87194d..0bddbc2 100644 --- a/scripts/install +++ b/scripts/install @@ -175,15 +175,6 @@ ynh_store_file_checksum --file="$application_file" #================================================= # GENERIC FINALIZATION -#================================================= -# SECURE FILES AND DIRECTORIES -#================================================= - -# Set permissions to app files -find $final_path/. -type d -exec chmod 755 {} \; -find $final_path/. -type f -exec chmod 644 {} \; -chown -R $app: $final_path - #================================================= # SETUP LOGROTATE #================================================= @@ -195,6 +186,15 @@ touch $final_path/app/data/_data_/_default_/logs/fail2ban/auth-fail.log # Use logrotate to manage application logfile(s) ynh_use_logrotate --logfile=$final_path/app/data/_data_/_default_/logs/fail2ban/auth-fail.log +#================================================= +# SECURE FILES AND DIRECTORIES +#================================================= + +# Set permissions to app files +find $final_path/. -type d -exec chmod 755 {} \; +find $final_path/. -type f -exec chmod 644 {} \; +chown -R $app: $final_path + #================================================= # SETUP FAIL2BAN #=================================================