mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
Fix again the cronjob for good
I hope this will be the last fix required
This commit is contained in:
parent
38cbef20f0
commit
56ba6677f6
@ -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
|
||||
crond -n -m off -P
|
Loading…
Reference in New Issue
Block a user