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:
parent
a6f149a63d
commit
c4f50fd23d
11
src/init.sh
11
src/init.sh
@ -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
|
Loading…
Reference in New Issue
Block a user