diff --git a/gitea/restore_gitea_container.sh b/gitea/restore_gitea_container.sh index b2dbbd9..94dec11 100644 --- a/gitea/restore_gitea_container.sh +++ b/gitea/restore_gitea_container.sh @@ -65,11 +65,11 @@ done # Generate all paths based on the last path component # Root of all the host versions of what gets mapped to /data in container -DATAROOT="/volume1/docker" +DATAROOT="$PWD/data" # Backup source folder, contains gitea_backup.zip, gitrepos_backup.tar.bz2 & lfs -BACKUPSRC="/volume1/backups/gitea" +BACKUPSRC="$PWD/gitea" CONFIG=$(basename $PWD) -DATADIR="/volume1/docker/$CONFIG" +DATADIR="$DATAROOT/$CONFIG" echo "Removing container" # Use --all in case it's been run manually