diff --git a/scripts/install b/scripts/install index a29c0c0..4de5fcc 100644 --- a/scripts/install +++ b/scripts/install @@ -122,7 +122,7 @@ exec_as $app cp "$final_path/user/plugins/login-ldap/login-ldap.yaml" "$final_pa # CREATE A CRON TASK #================================================= -echo "* * * * * $app php$phpversion $final_path/bin/grav scheduler 1>> /dev/null 2>&1" > /etc/cron.d/$app +echo "* * * * * $app php${YNH_PHP_VERSION} $final_path/bin/grav scheduler 1>> /dev/null 2>&1" > /etc/cron.d/$app #================================================= # SETUP PERMISSIONS diff --git a/scripts/upgrade b/scripts/upgrade index f6b041a..4d78042 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -187,7 +187,7 @@ exec_as $app cp "$final_path/user/plugins/login-ldap/login-ldap.yaml" "$final_pa # CREATE A CRON TASK #================================================= -echo "* * * * * $app php$phpversion $final_path/bin/grav scheduler 1>> /dev/null 2>&1" > /etc/cron.d/$app +echo "* * * * * $app php${YNH_PHP_VERSION} $final_path/bin/grav scheduler 1>> /dev/null 2>&1" > /etc/cron.d/$app #================================================= # SETUP PERMISSIONS