|
|
@ -6,7 +6,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
interactive=true
|
|
|
|
interactive=true
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$1" == "--no-interactive" ]; then
|
|
|
|
if [ "$1" = "--no-interactive" ]; then
|
|
|
|
interactive=false
|
|
|
|
interactive=false
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
@ -21,7 +21,7 @@ sudo systemctl enable postgresql.service
|
|
|
|
# Create databse and user
|
|
|
|
# Create databse and user
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$interactive" == "true" ]; then
|
|
|
|
if [ "$interactive" = "true" ]; then
|
|
|
|
sudo -u postgres -- createuser -P kemal
|
|
|
|
sudo -u postgres -- createuser -P kemal
|
|
|
|
sudo -u postgres -- createdb -O kemal invidious
|
|
|
|
sudo -u postgres -- createdb -O kemal invidious
|
|
|
|
else
|
|
|
|
else
|
|
|
|