We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f06f895 commit b89e0b4Copy full SHA for b89e0b4
createuser.sh
@@ -1 +1,5 @@
1
-createuser -S -D -R -U postgres libertree
+if echo "\dg" | psql -U postgres | grep -wq libertree; then
2
+ echo "User already exists: libertree"
3
+else
4
+ createuser -S -D -R -U postgres libertree
5
+fi
0 commit comments