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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: