From 4c48a7798ccf0d146eebe5e9744fd6dee5dce612 Mon Sep 17 00:00:00 2001 From: ljf Date: Wed, 14 Dec 2016 14:13:13 +0100 Subject: [PATCH] [fix] Role already exists --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 8897538..ca3f956 100644 --- a/scripts/install +++ b/scripts/install @@ -75,8 +75,8 @@ else sudo cp -R "$DESTDIR." /usr/ sudo rm -Rf $DESTDIR - ynh_psql_create_db $APPNAME $APPNAME "$dbpass" ynh_psql_execute_as_root "ALTER USER $APPNAME WITH CREATEDB;" + sudo su -c "createdb -O $APPNAME $APPNAME" - postgres # Set admin password # TODO Support @ in password