Skip to content

Commit

Permalink
Some fixes for updating public
Browse files Browse the repository at this point in the history
Not quite finished, but this seems to be correct.
  • Loading branch information
blakesweeney committed Mar 26, 2024
1 parent 98438af commit 5c5e518
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion update-public.nf
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ process populate_public {
script:
public_db = params.dbs.pub
"""
export PGPASSWORD='\$PUBLIC_PASSWORD'
psql -c "set maintenance_work_mem='1GB'" \$PUBLIC
psql -c 'drop schema if exists rnacen cascade' \$PUBLIC
psql -c "ALTER ROLE rnacen SET statement_timeout = '2d';" \$PUBLIC
export PGPASSWORD='${public_db.password}'
/usr/pgsql-10/bin/pg_restore -x -h ${public_db.host} -U ${public_db.user} -d ${public_db.db_name} -j 2 $dump_file
psql -c 'revoke usage on schema rnacen from public' \$PUBLIC
Expand Down

0 comments on commit 5c5e518

Please sign in to comment.