5 lines
209 B
Bash
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'
|