Page MenuHomeSoftware Heritage
Paste P1330

setup-db.sh
ActivePublic

Authored by ardumont on Apr 6 2022, 4:36 PM.
#!/usr/bin/env bash
set -xe
DBPORT=5432
DBPASSWORD=<redacted>
DBUSER=swh-scrubber
DBNAME=swh-scrubber
DBHOST=db1.internal.staging.swh.network
CONNSTRING=postgresql://$DBUSER:$DBPASSWORD@$DBHOST:$DBPORT/$DBNAME
swh db init-admin --dbname $CONNSTRING scrubber
swh db init --dbname $CONNSTRING scrubber