Skip to content

A free open source IT asset/license management system

Set crons as app user for installer

snipea766572a2f81
diff --git a/snipeit.sh b/snipeit.sh
index 08c7c7b5f4..0bf253423c 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") | crontab -
}
set_firewall () {