diff --git a/src/init.sh b/src/init.sh index da376ca..87bad45 100644 --- a/src/init.sh +++ b/src/init.sh @@ -14,8 +14,8 @@ git config --global user.name $USER_NAME git config --global user.email $USER_MAIL # Initialize the cronjob -echo -e "SHELL=/bin/bash\nPATH=/sbin:/bin:/usr/sbin:/usr/bin\nMAILTO=root\n$CRONTAB_TIME root /usr/bin/flock -n /tmp/lock.build /root/build.sh\n" > /etc/cron.d/crontab -chmod 0644 /etc/cron.d/crontab +echo -e "$CRONTAB_TIME /usr/bin/flock -n /tmp/lock.build /root/build.sh\n" > /var/spool/cron/root +chmod 0600 /var/spool/cron/root # Run crond in foreground -crond -n \ No newline at end of file +crond -n -m off -P \ No newline at end of file