1
0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-11-09 10:09:56 +01:00

Re-enable logging print from cron script

Log from cron script were not output if not DEBUG was active
This commit is contained in:
Julian Xhokaxhiu 2017-02-17 18:29:13 +01:00
parent 789da2da48
commit f96e5d2795

@ -23,7 +23,7 @@ git config --global user.email $USER_MAIL
cronFile=/tmp/buildcron cronFile=/tmp/buildcron
printf "SHELL=/bin/bash\n" > $cronFile printf "SHELL=/bin/bash\n" > $cronFile
printenv -0 | sed -e 's/=\x0/=""\n/g' | sed -e 's/\x0/\n/g' | sed -e "s/_=/PRINTENV=/g" >> $cronFile printenv -0 | sed -e 's/=\x0/=""\n/g' | sed -e 's/\x0/\n/g' | sed -e "s/_=/PRINTENV=/g" >> $cronFile
printf "\n$CRONTAB_TIME /usr/bin/flock -n /tmp/lock.build /root/build.sh\n" >> $cronFile printf "\n$CRONTAB_TIME /usr/bin/flock -n /tmp/lock.build /root/build.sh >> $DOCKER_LOG 2>&1\n" >> $cronFile
crontab $cronFile crontab $cronFile
rm $cronFile rm $cronFile