| 1 | |
| 2 | |
| 3 | @@ -1,4 +1,4 @@
|
| 4 | -#!/usr/bin/env bash
|
| 5 | +#!/bin/sh
|
| 6 | set -e
|
| 7 |
|
| 8 | # Default configurations
|
| 9 | @@ -43,7 +43,7 @@
|
| 10 | do
|
| 11 | read -p "Database name: " dbname
|
| 12 | read -p "Username: " username
|
| 13 | - read -p "Password: password"
|
| 14 | + read -p "Password: " password
|
| 15 | read -p "Port: " port
|
| 16 | #echo
|
| 17 |
|
| 18 | @@ -68,7 +68,7 @@
|
| 19 |
|
| 20 | ask_for_db_config
|
| 21 |
|
| 22 | -psql -c "CREATE USER $username WITH PASSWORD '$password' SUPERUSER;" -U postgres
|
| 23 | +psql -c "CREATE USER $username WITH PASSWORD '$password';" -U postgres
|
| 24 | psql -c "CREATE DATABASE $dbname WITH OWNER $username;" -U postgres
|
| 25 | export LEMMY_DATABASE_URL=postgres://$username:$password@localhost:$port/$dbname
|
| 26 |
|