Set crons as app user for installer
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
6a8824a467
commit
a766572a2f
1 changed files with 1 additions and 1 deletions
|
@ -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") | crontab -
|
||||||
}
|
}
|
||||||
|
|
||||||
set_firewall () {
|
set_firewall () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue