Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1330
setup-db.sh
Active
Public
Actions
Authored by
ardumont
on Apr 6 2022, 4:36 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
#!/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
Event Timeline
ardumont
created this paste.
Apr 6 2022, 4:36 PM
2022-04-06 16:36:46 (UTC+2)
ardumont
mentioned this in
T4102: staging: Deploy swh-scrubber database and checkers
.
Apr 6 2022, 4:39 PM
2022-04-06 16:39:24 (UTC+2)
Log In to Comment