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