Files
speka-autoreg/runsql.sh
T
2026-11-09 13:09:07 +03:00

5 lines
209 B
Bash

#!/bin/bash
cp /tmp/add_speka.sql /var/lib/postgresql/ 2>/dev/null
chown postgres /var/lib/postgresql/add_speka.sql 2>/dev/null
su postgres -c 'cd /var/lib/postgresql && psql -d newapi -A -t -f add_speka.sql'