Merge pull request #11288 from snipe/fixes/set_crons_as_app_user_in_installer

Fixes - set crons as app user in installer
This commit is contained in:
snipe 2022-06-13 19:18:55 -07:00 committed by GitHub
commit 66346684a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -237,7 +237,7 @@ install_snipeit () {
log "php $APP_PATH/artisan migrate --force" log "php $APP_PATH/artisan migrate --force"
echo "* Creating scheduler cron." 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 () { set_firewall () {