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