Files
2026-11-09 13:09:07 +03:00

4 lines
168 B
Bash

#!/bin/bash
cp /tmp/qs5.sql /var/lib/postgresql/; chown postgres /var/lib/postgresql/qs5.sql
su postgres -c 'cd /var/lib/postgresql && psql -d newapi -A -t -f qs5.sql'