From bae31d6d86838c17789176d8712efe617a40651e809166cc9a85775fd49800fc Mon Sep 17 00:00:00 2001 From: Axel Braun Date: Fri, 13 Jul 2018 07:12:25 +0000 Subject: [PATCH] Accepting request 622426 from home:DocB:branches:Application:ERP:GNUHealth:Factory - openSUSE-gnuhealth-setup: User tryton set to SUPERUSER OBS-URL: https://build.opensuse.org/request/show/622426 OBS-URL: https://build.opensuse.org/package/show/Application:ERP:GNUHealth:Factory/gnuhealth?expand=0&rev=10 --- gnuhealth.changes | 5 +++++ openSUSE-gnuhealth-setup | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gnuhealth.changes b/gnuhealth.changes index e20c384..24a2dc4 100644 --- a/gnuhealth.changes +++ b/gnuhealth.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 12 19:34:44 UTC 2018 - axel.braun@gmx.de + +- openSUSE-gnuhealth-setup: User tryton set to SUPERUSER + ------------------------------------------------------------------- Wed Jun 20 09:17:23 UTC 2018 - axel.braun@gmx.de diff --git a/openSUSE-gnuhealth-setup b/openSUSE-gnuhealth-setup index d26bd56..21d4177 100644 --- a/openSUSE-gnuhealth-setup +++ b/openSUSE-gnuhealth-setup @@ -28,6 +28,7 @@ # Change log #----------------------------------------------------------------------------- # V 0.2 20180617 Axel Replace tryton with ${DB_USER} +# V 0.3 20180712 Axel Set user 'tryton' to superuser (otherwise installation of DMO-DB fails) #----------------------------------------------------------------------------- @@ -35,7 +36,7 @@ #----------------------------------------------------------------------------- #GNU Health installer for openSUSE version -VERSION="0.2" +VERSION="0.3" # Colors constants NONE="$(tput sgr0)" @@ -130,7 +131,7 @@ echo "Postgres trust method changed" echo "Create database user" #create user -sudo -u postgres psql -c "CREATE USER ${DB_USER} WITH CREATEDB;" +sudo -u postgres psql -c "CREATE USER ${DB_USER} WITH SUPERUSER;" echo "Database user created" @@ -153,7 +154,7 @@ echo "Initializing database - this may take a while" echo ${DB_ADMIN_PWD} > /tmp/pw || bailout -sudo -u tryton env TRYTONPASSFILE=/tmp/pw trytond-admin -c /etc/tryton/trytond.conf --all -d ${DB_NAME} --password || bailout +sudo -u tryton env TRYTONPASSFILE=/tmp/pw trytond-admin -c /etc/tryton/trytond.conf --all -v -d ${DB_NAME} --password || bailout rm /tmp/pw || bailout