mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-07 03:20:25 +00:00
Merge pull request #684 from pfcoder/fix-dbinit
fix shell quotation error of server db-init.sh
This commit is contained in:
commit
d5f62e1355
2
server/db-init.sh
vendored
2
server/db-init.sh
vendored
@ -37,7 +37,7 @@ done
|
|||||||
|
|
||||||
|
|
||||||
psql -c "CREATE USER $username WITH PASSWORD '$password' SUPERUSER;" -U postgres
|
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
|
export LEMMY_DATABASE_URL=postgres://$username:$password@localhost:$port/$dbname
|
||||||
|
|
||||||
echo $LEMMY_DATABASE_URL
|
echo $LEMMY_DATABASE_URL
|
||||||
|
Loading…
Reference in New Issue
Block a user