Accepting request 526510 from Application:ERP:Tryton:Factory

bnc1054032 bugfix release for GNU Health

OBS-URL: https://build.opensuse.org/request/show/526510
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnuhealth?expand=0&rev=15
This commit is contained in:
Dominique Leuenberger 2017-09-17 20:38:47 +00:00 committed by Git OBS Bridge
parent fbfc0a6a95
commit 331fe34fe4
5 changed files with 36 additions and 28 deletions

View File

@ -7,13 +7,14 @@ How to get it running (Without reading the instructions)
You have already installed the package gnuhealth and found this documentation. Good. You have already installed the package gnuhealth and found this documentation. Good.
1) Log in as root and start the database 1) Log in as root and start the database
#su > su
#systemctl start postgresql > systemctl start postgresql
2) Change postgres parameters. You need to log in as user postgres, in order to avoid authorisation issues. Assuming we have nano as editor: 2) Change postgres parameters. You need to log in as user postgres, in order to avoid authorisation issues. Assuming we have nano as editor:
<you are logged in as user 'root'> <you are logged in as user 'root'>
#su postgres
#nano /var/lib/pgsql/data/pg_hba.conf > su postgres
> nano /var/lib/pgsql/data/pg_hba.conf
FOR LOCAL CONNECTIONS (Database on the same machine) change the line FOR LOCAL CONNECTIONS (Database on the same machine) change the line
local all all md5 local all all md5
@ -23,28 +24,24 @@ to
Save your input. This will make sure that Tryton/GNUHealth server can connect to the database Save your input. This will make sure that Tryton/GNUHealth server can connect to the database
3) Create a role for 'tryton' in the database (sill as user postgres) 3) Create a role for 'tryton' in the database (sill as user postgres)
#psql -c "CREATE USER tryton WITH CREATEDB;" > psql -c "CREATE USER tryton WITH CREATEDB;"
4) exit as user postgres and restart postgres 4) exit as user postgres and restart postgres
#exit > exit
#systemctl restart postgresql > systemctl restart postgresql
5) Now lets look at /etc/tryton/trytond.conf. Uncomment the line with super_pwd (it is recommended that you set your own password here! 5) start gnuhealth/trytond:
#nano /etc/tryton/trytond.conf > systemctl start gnuhealth
uncomment super_pwd
6) start gnuhealth/trytond: 6) Install the tryton client:
#systemctl start gnuhealth > zypper in tryton
7) Install the tryton client: 7) Open the tryton client:
#zypper in tryton > tryton
8) Open the tryton client:
#tryton
go to 'manage profiles' -> add -> name it 'localhost' -> Host: localhost go to 'manage profiles' -> add -> name it 'localhost' -> Host: localhost
-> you should now see a selection of available databases -> you should now see a selection of available databases
Note: Fron Tryton Release 4.2 onwards it is not possible anymore to create databases Note: From Tryton Release 4.2 onwards it is not possible anymore to create databases
from the Frontend. You need to do this manually (see /usr/share/doc/packages/trytond/tryton-server.README.SUSE) from the Frontend. You need to do this manually (see /usr/share/doc/packages/trytond/tryton-server.README.SUSE)
DONE. DONE.
@ -69,24 +66,24 @@ Upgrade
As user tryton, run tryton-admin: As user tryton, run tryton-admin:
# /usr/bin/trytond-admin -c /etc/tryton/trytond.conf --all -d mydb > /usr/bin/trytond-admin -c /etc/tryton/trytond.conf --all -d mydb
* GNU_Health 3.0 on openSUSE delivered 2 modules, which are not (yet) in 3.2 * GNU_Health 3.0 on openSUSE delivered 2 modules, which are not (yet) in 3.2
anymore: pdq and hl7. You need to delete them first anymore: pdq and hl7. You need to delete them first
Log in as database owner (usually tryton): Log in as database owner (usually tryton):
# sudo su tryton -s /bin/bash > sudo su tryton -s /bin/bash
Delete the 2 modules: Delete the 2 modules:
# psql mydb > psql mydb
delete from ir_module where name='pdq'; delete from ir_module where name='pdq';
delete from ir_module where name='hl7'; delete from ir_module where name='hl7';
Quit with CRTL-D Quit with CRTL-D
Apply the database patch: Apply the database patch:
# psql mydb < /usr/share/doc/packages/gnuhealth/upgrade/3.2/upgrade_32.sql > psql mydb < /usr/share/doc/packages/gnuhealth/upgrade/3.2/upgrade_32.sql
Remember to replace mydb with the name of your database. Remember to replace mydb with the name of your database.
@ -135,7 +132,7 @@ gnuhealth-webdav@.service
Starting with GNU Health 3.2, GNU Health comes with its own WebDAV-Server that can be used for shared calendars. In order to enable the WebDAV server, it comes with a systemd-service. As input parameter for the service the database-name on which to operate must be passed. Say your database is called mydb, invoke the service with Starting with GNU Health 3.2, GNU Health comes with its own WebDAV-Server that can be used for shared calendars. In order to enable the WebDAV server, it comes with a systemd-service. As input parameter for the service the database-name on which to operate must be passed. Say your database is called mydb, invoke the service with
systemctl enable gnuhealth-webdav@mydb.service > systemctl enable gnuhealth-webdav@mydb.service
You can start multiple webdav services for different databases in parallel. You can start multiple webdav services for different databases in parallel.
@ -158,4 +155,4 @@ Have fun and keep the neighborhood well and fit!
[4] https://github.com/mbehrle/tryton/blob/wiki/InstallationonopenSUSE.md [4] https://github.com/mbehrle/tryton/blob/wiki/InstallationonopenSUSE.md
-- Axel Braun <axel.braun@gmx.de> TUE Jun 20 15:40:04 UTC 2017 -- Axel Braun <axel.braun@gmx.de> THU Sep 14 19:14:04 UTC 2017

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13e363056fa2fcaffec126bd37a38f30efe893b3b8bf69937327b8921253bffa
size 10207021

3
gnuhealth-3.2.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:987c8979f642f1b61909f22a61c1e365e54bbd4213f1fe57e3d391ee8f74cf11
size 10219192

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Sat Sep 16 16:18:04 UTC 2017 - axel.braun@gmx.de
- version 3.2.3 Fix bug #52038: Field history is repeated in the tree
view of the prescription line
-------------------------------------------------------------------
Thu Sep 14 19:14:55 UTC 2017 - axel.braun@gmx.de
- Documentation adapted
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 28 19:29:06 UTC 2017 - axel.braun@gmx.de Mon Aug 28 19:29:06 UTC 2017 - axel.braun@gmx.de

View File

@ -24,7 +24,7 @@ Name: gnuhealth
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
Version: %{majorver}.2 Version: %{majorver}.3
Release: 0 Release: 0
Url: http://health.gnu.org Url: http://health.gnu.org