1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-24 15:13:03 +02:00

Update pywb entrypoint

wb-manager first needs you to init the collection. If you attempt to init a collection that already exists, it exits with a `2`.

Also, `wayback --proxy` requires an argument, so I remove the proxy argument.
This commit is contained in:
Mike Kusold
2022-04-05 20:42:29 -06:00
committed by GitHub
parent d268513877
commit dfef21a814

View File

@@ -106,7 +106,7 @@ services:
# pywb:
# image: webrecorder/pywb:latest
# entrypoint: /bin/sh 'wb-manager add default /archivebox/archive/*/warc/*.warc.gz; wayback --proxy;'
# entrypoint: /bin/sh '(wb-manager init default || test $? -eq 2) && wb-manager add default /archivebox/archive/*/warc/*.warc.gz; wayback;'
# environment:
# - INIT_COLLECTION=archivebox
# ports: