diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index d301b5f..26de248 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -80,7 +80,7 @@
-
+
1684080793392
@@ -124,7 +124,14 @@
1684326830505
-
+
+ 1684331474276
+
+
+
+ 1684331474276
+
+
@@ -148,6 +155,7 @@
-
+
+
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index f755975..38f31bc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,12 +14,12 @@ WORKDIR /var/lib/duplicity
ENV HOME="/var/lib/duplicity"
# Add entrypoint
-COPY ./entrypoint.sh ./entrypoint.sh
-COPY ./restore.sh ./restore.sh
+COPY ./entrypoint.sh /usr/lib/backup-duplicity/entrypoint.sh
+COPY ./restore.sh /usr/lib/backup-duplicity/restore.sh
COPY ./backup.sh /etc/periodic/daily/backup.sh
# Configure entrypoint and command
-ENTRYPOINT ["./entrypoint.sh"]
+ENTRYPOINT ["/usr/lib/backup-duplicity/entrypoint.sh"]
CMD []
# Add image labels
diff --git a/entrypoint.sh b/entrypoint.sh
index fbc2838..633cb31 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -3,13 +3,13 @@
case "$MODE" in
backup)
echo "Running first backup..."
- ./backup.sh
+ /usr/lib/backup-duplicity/backup.sh
echo "Running cron for daily backups..."
crond -f -d 5 -l info
;;
restore)
echo "Restoring from latest backup..."
- ./restore.sh
+ /usr/lib/backup-duplicity/restore.sh
;;
*)
echo "No such mode." >> /dev/stderr