1
0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-09-20 12:22:40 +02:00

It seems cronjob is running but not the shell script

Refine again
This commit is contained in:
Julian Xhokaxhiu 2017-01-12 22:38:54 +01:00
parent a6f149a63d
commit c4f50fd23d

View File

@ -14,9 +14,12 @@ git config --global user.name $USER_NAME
git config --global user.email $USER_MAIL
# Initialize the cronjob
printf "$CRONTAB_TIME /usr/bin/flock -n /tmp/lock.build /root/build.sh\n" >> /tmp/buildcron
crontab /tmp/buildcron
rm /tmp/buildcron
cronFile=/tmp/buildcron
printf "SHELL=/bin/bash\n" > $cronFile
printenv >> $cronFile
printf "\n\n$CRONTAB_TIME /usr/bin/flock -n /tmp/lock.build /root/build.sh 2>&1\n" >> $cronFile
crontab $cronFile
rm $cronFile
# Run crond in foreground
crond -n -m off -P
crond -n -m off