fixed include file outside build directory

This commit is contained in:
2023-01-24 16:03:27 +00:00
parent 1a2e6c48b9
commit f2394f6473
4 changed files with 44 additions and 4 deletions
-1
View File
@@ -1 +0,0 @@
../docker-entrypoint.sh
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
set -e
CRONJOB="$CRON_SCHEDULE $COMMAND $RCLONE_OPTS"
echo "Configuring..."
echo "This cron job will be added :"
echo "$CRONJOB"
echo "Installing the cron job..."
echo "$CRONJOB > /proc/1/fd/1 2>/proc/1/fd/2" > /var/spool/cron/crontabs/root
chown root:root /var/spool/cron/crontabs/root
chmod 600 /var/spool/cron/crontabs/root
echo "We run the command once (initial check)..."
#eval "$COMMAND"
# run the CMD
echo "First sync was successful, starting cron !"
exec "$@"