Merge pull request #684 from pfcoder/fix-dbinit

fix shell quotation error of server db-init.sh
This commit is contained in:
Dessalines 2020-05-01 10:31:55 -04:00 committed by GitHub
commit f37dca5234
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
server/db-init.sh vendored
View file

@ -37,7 +37,7 @@ done
psql -c "CREATE USER $username WITH PASSWORD '$password' SUPERUSER;" -U postgres
psql -c 'CREATE DATABASE $dbname WITH OWNER $username;' -U postgres
psql -c "CREATE DATABASE $dbname WITH OWNER $username;" -U postgres
export LEMMY_DATABASE_URL=postgres://$username:$password@localhost:$port/$dbname
echo $LEMMY_DATABASE_URL