]> Untitled Git - lemmy.git/commitdiff
fix shell quotation error of server db-init.sh
authorpfcoder <pfcoder97@gmail.com>
Fri, 1 May 2020 13:58:52 +0000 (21:58 +0800)
committerpfcoder <pfcoder97@gmail.com>
Fri, 1 May 2020 13:58:52 +0000 (21:58 +0800)
server/db-init.sh

index c9150e9de5d9dd207a6ee3a409f774f25f8d86f8..87f39eadafd038d4deb02ec7d34a0ab8f670f64e 100755 (executable)
@@ -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