1
0
Fork 0
mirror of synced 2024-06-15 17:04:36 +12:00

update readme examples

This commit is contained in:
Nick Sweeting 2020-07-28 06:00:52 -04:00
parent b1082cfbaa
commit d7fc161ac7
2 changed files with 3 additions and 2 deletions

View file

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

View file

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