From bd08e60c2d715ac32f6eb7d7c91b6dc8f2924700 Mon Sep 17 00:00:00 2001 From: Jonathan Ervine Date: Mon, 17 Aug 2020 22:33:56 +0800 Subject: [PATCH] Fixed permissions --- start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 0587171..47b22b2 100755 --- a/start.sh +++ b/start.sh @@ -5,12 +5,12 @@ LIVE_DB=$1 BACKUP_DB=$2 echo -e 'Starting the sidecar container to periodically backup the sonarr databases' -chown 1003:1003 /mnt/app-local-config chown 1003:1003 /app-remote-config/* echo -e 'Copy the config from the remote share to the locali drive' touch /mnt/app-local-config/$LIVE_DB python3 /app-remote-config/db-restore.py $BACKUP_DB $LIVE_DB find /app-remote-config/ -type -f -not -iname $BACKUP_DB -exec cp -fvp '{}' '/mnt/app-local-config/{}' ';' +chown -R 1003:1003 /mnt/app-local-config echo -e 'Perform periodic backup of database' while true; do sleep 890