1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-18 04:11:57 +02:00

Update docker_entrypoint.sh

This commit is contained in:
Nick Sweeting
2024-11-03 17:02:36 -08:00
committed by GitHub
parent 99ed97836f
commit 5d3c2a8a99

View File

@@ -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