From: pfcoder Date: Fri, 1 May 2020 13:58:52 +0000 (+0800) Subject: fix shell quotation error of server db-init.sh X-Git-Url: http://these/git/readmes/%7B%60https:/%7Burl%7D?a=commitdiff_plain;h=6d73b167168699f4ca67f927d125f0be46e9aad9;p=lemmy.git fix shell quotation error of server db-init.sh --- diff --git a/server/db-init.sh b/server/db-init.sh index c9150e9d..87f39ead 100755 --- a/server/db-init.sh +++ b/server/db-init.sh @@ -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