mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 14:44:29 -04: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?
|
#### How does it work?
|
||||||
|
|
||||||
```bash
|
```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.
|
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 user is not root, modify the archivebox user+files to have the same uid,gid
|
||||||
if [[ "$USID" != 0 && "$GRID" != 0 ]]; then
|
if [[ "$USID" != 0 && "$GRID" != 0 ]]; then
|
||||||
chown "$USID":"$GRID" "$DATA_DIR"
|
|
||||||
usermod -u "$USID" "$ARCHIVEBOX_USER"
|
usermod -u "$USID" "$ARCHIVEBOX_USER"
|
||||||
groupmod -g "$GRID" "$ARCHIVEBOX_USER"
|
groupmod -g "$GRID" "$ARCHIVEBOX_USER"
|
||||||
chown -R "$USID":"$GRID" "/home/$ARCHIVEBOX_USER"
|
chown -R "$USID":"$GRID" "/home/$ARCHIVEBOX_USER"
|
||||||
|
chown "$USID":"$GRID" "$DATA_DIR" "$DATA_DIR/*"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# run django as the new archivebox user
|
# run django as the new archivebox user
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue