Skip to content

Commit

Permalink
Allow /srv to be non-empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Sep 25, 2024
1 parent 27b4da4 commit 684d06a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ source "$env_file"
target=/srv

if find "$target" -mindepth 1 | grep -q .; then
echo "error: $target not empty, refusing to overwrite."
exit 1
>&2 echo "WARNING: $target is not empty, it might contain out-of-date or otherwise stray files. If you just restarted this container, you can ignore this warning."
fi

# create directories in target folder
Expand Down

0 comments on commit 684d06a

Please sign in to comment.