From 5d3c2a8a997a8fc2640b28876cb5a495a1f7f8ba Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sun, 3 Nov 2024 17:02:36 -0800 Subject: [PATCH] Update docker_entrypoint.sh --- bin/docker_entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/docker_entrypoint.sh b/bin/docker_entrypoint.sh index 83e3bdbc..9a3b3d3c 100755 --- a/bin/docker_entrypoint.sh +++ b/bin/docker_entrypoint.sh @@ -59,7 +59,7 @@ export PUID="$(id -u archivebox)" export PGID="$(id -g archivebox)" # Check if user attempted to run it in the root of their home folder or hard drive (common mistake) -if [[ -d "$DATA_DIR/Documents" || -d "$DATA_DIR/.config" || -d "$DATA_DIR/usr" ]]; then +if [[ -d "$DATA_DIR/Documents" || -d "$DATA_DIR/.config" || -d "$DATA_DIR/usr" || -f "$DATA_DIR/.bashrc" || -f "$DATA_DIR/.zshrc" ]]; then echo -e "\n[X] ERROR: ArchiveBox was run from inside a home folder" echo -e " Make sure you are inside an existing collection directory or a new empty directory and try again" exit 3