nk20-scripts/shell/tabularasa

4 lines
121 B
Bash
Executable File

#!/usr/bin/sh
sudo -u postgres sh -c "dropdb note_db && psql -c 'CREATE DATABASE note_db OWNER note;'";
echo 'reset db';