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

Fix permissions for crontab file

And move ADDITIONAL_DEFAULT_PROPERTIES export to build.sh
This commit is contained in:
Julian Xhokaxhiu 2017-01-08 18:24:23 +01:00
parent 3d802e2e09
commit 53c7778701
2 changed files with 6 additions and 5 deletions

View File

@ -4,6 +4,11 @@
#
###########################################################
# Set a custom updater URI if a OTA URL is provided
if ! [ -z "$OTA_URL" ]; then
export ADDITIONAL_DEFAULT_PROPERTIES="cm.updater.uri=$OTA_URL"
fi
if ! [ -z "$DEVICE_LIST" ]; then
# If the source directory is empty

View File

@ -4,11 +4,6 @@
#
###########################################################
# Set a custom updater URI if a OTA URL is provided
if ! [ -z "$OTA_URL" ]; then
export ADDITIONAL_DEFAULT_PROPERTIES="cm.updater.uri=$OTA_URL"
fi
# Initialize CCache if it will be used
if [ "$USE_CCACHE" = 1 ]; then
ccache -M 50G
@ -20,6 +15,7 @@ git config --global user.email $USER_MAIL
# Initialize the cronjob
echo -e "$CRONTAB_TIME /usr/bin/flock -n /tmp/lock.build /root/build.sh\n" > /etc/cron.d/crontab
chmod 0644 /etc/cron.d/crontab
# Start the cron job service
cron -f