Move postgres init to own script
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
|
||||
$INTERACTIVE && read -p "Create user 'sik' in PostgresSQL db (needs sudo) [y/n]?" -n 1 -r || REPLY="n"
|
||||
echo ""
|
||||
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
sudo -u postgres psql < "$PWD/init.sql"
|
||||
fi
|
||||
Reference in New Issue
Block a user