reorganized the file and folder structure

This commit is contained in:
2023-01-27 18:38:21 +00:00
parent 5910d4d9a9
commit 0d4e8b6e80
18 changed files with 36 additions and 47 deletions
+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 "$@"