diff --git a/snipeit.sh b/snipeit.sh index 08c7c7b5f4..ab190aac9c 100755 --- a/snipeit.sh +++ b/snipeit.sh @@ -237,7 +237,7 @@ install_snipeit () { log "php $APP_PATH/artisan migrate --force" echo "* Creating scheduler cron." - (crontab -l ; echo "* * * * * /usr/bin/php $APP_PATH/artisan schedule:run >> /dev/null 2>&1") | crontab - + (run_as_app_user crontab -l ; echo "* * * * * /usr/bin/php $APP_PATH/artisan schedule:run >> /dev/null 2>&1") | run_as_app_user crontab - } set_firewall () {