forked from pool/gnuhealth
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
This commit is contained in:
parent
18b24d2c28
commit
bae31d6d86
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user