diff --git a/README.md b/README.md index 100e3cb6..8d2c4f86 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,8 @@ You can use it to preserve access to websites you care about by storing them loc #### How does it work? ```bash -archivebox add 'https://example.com' +docker run -v $PWD:/data archivebox init +docker run -v $PWD/data:/data -p 8000 archivebox ``` After installing the dependencies, just pipe some new links into the `archivebox add` command to start your archive. diff --git a/bin/docker_entrypoint.sh b/bin/docker_entrypoint.sh index e9b399ec..a9491d32 100755 --- a/bin/docker_entrypoint.sh +++ b/bin/docker_entrypoint.sh @@ -11,10 +11,10 @@ GRID=$(stat --format="%g" "$DATA_DIR") # If user is not root, modify the archivebox user+files to have the same uid,gid if [[ "$USID" != 0 && "$GRID" != 0 ]]; then - chown "$USID":"$GRID" "$DATA_DIR" usermod -u "$USID" "$ARCHIVEBOX_USER" groupmod -g "$GRID" "$ARCHIVEBOX_USER" chown -R "$USID":"$GRID" "/home/$ARCHIVEBOX_USER" + chown "$USID":"$GRID" "$DATA_DIR" "$DATA_DIR/*" fi # run django as the new archivebox user