From 0ca3096997ef3968a943df89ecc5b5bbce8f8ab8 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 8 Feb 2022 20:37:55 +0100 Subject: [PATCH] Fix permissions on cronjob --- scripts/install | 1 + scripts/restore | 1 + scripts/upgrade | 1 + 3 files changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index 1c72628..c34f502 100644 --- a/scripts/install +++ b/scripts/install @@ -127,6 +127,7 @@ chmod 640 "$final_path/user/config/plugins/login-ldap.yaml" echo "* * * * * $app php${YNH_PHP_VERSION} $final_path/bin/grav scheduler 1>> /dev/null 2>&1" > /etc/cron.d/$app +chmod 644 /etc/cron.d/$app #================================================= # SETUP PERMISSIONS #================================================= diff --git a/scripts/restore b/scripts/restore index 088bd9e..65e62a1 100644 --- a/scripts/restore +++ b/scripts/restore @@ -81,6 +81,7 @@ find "$final_path" -type d -exec chmod +s {} \; #================================================= ynh_restore_file --origin_path="/etc/cron.d/$app" +chmod 644 /etc/cron.d/$app #================================================= # RESTORE THE PHP-FPM CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 0a062c4..c997485 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -185,6 +185,7 @@ popd #================================================= echo "* * * * * $app php${YNH_PHP_VERSION} $final_path/bin/grav scheduler 1>> /dev/null 2>&1" > /etc/cron.d/$app +chmod 644 /etc/cron.d/$app #================================================= # RELOAD NGINX AND PHP-FPM