mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-16 21:38:33 +00:00
update readme examples
This commit is contained in:
parent
b1082cfbaa
commit
d7fc161ac7
2 changed files with 3 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue