From 6e9c75ef0ca8bc015940002aafb960d59d936bc8 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 27 Mar 2022 16:58:34 +0200 Subject: [PATCH] Fix --- conf/logrotate | 8 -------- scripts/install | 6 ++++-- 2 files changed, 4 insertions(+), 10 deletions(-) delete mode 100644 conf/logrotate diff --git a/conf/logrotate b/conf/logrotate deleted file mode 100644 index d4feee7..0000000 --- a/conf/logrotate +++ /dev/null @@ -1,8 +0,0 @@ -/etc/logrotate.d/invidious.logrotate { - rotate 4 - weekly - notifempty - missingok - compress - minsize 1048576 -} diff --git a/scripts/install b/scripts/install index 16d934a..c45ebb1 100644 --- a/scripts/install +++ b/scripts/install @@ -146,10 +146,12 @@ popd #================================================= # MODIFY A CONFIG FILE #================================================= -ynh_script_progression --message="Modifying a config file..." +ynh_script_progression --message="Modifying a config file..." --weight=1 ynh_add_config --template="../conf/config.yml" --destination="$final_path/config/config.yml" -chmod 600 $final_path/config/config.yml + +chmod 600 "$final_path/config/config.yml" +chown $app:$app "$final_path/config/config.yml" #================================================= # SETUP SYSTEMD