From b65f413de02580cf7e49f61f827e3a6a99cede98b15cc4dd0a5d7f52a52f9e41 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 2 Mar 2017 18:36:56 +0000 Subject: [PATCH] Accepting request 460613 from Application:ERP:Tryton:Factory bnc1026334 OBS-URL: https://build.opensuse.org/request/show/460613 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnuhealth?expand=0&rev=7 --- GNUHealth.README.SUSE | 2 +- gnuhealth_control => gnuhealth-control | 8 ++++---- gnuhealth.changes | 12 ++++++++++++ gnuhealth.spec | 2 +- 4 files changed, 18 insertions(+), 6 deletions(-) rename gnuhealth_control => gnuhealth-control (98%) diff --git a/GNUHealth.README.SUSE b/GNUHealth.README.SUSE index 1384898..e7f37d0 100644 --- a/GNUHealth.README.SUSE +++ b/GNUHealth.README.SUSE @@ -78,7 +78,7 @@ Unlike the standard GNUHealth setup, openSUSE treats GNUHealth as add-on (additi - you can use the openSUSE package manager (zypper or YaST) to install upgrades. - all Tryton and GNUHealth modules are installed in the python directory /usr/lib/python/site-packages/trytond -Nevertheless, you can use gnuhealth-control to create database backups, install languages and updates. Make sure the version of gnuhealth_control ends on -openSUSE +Nevertheless, you can use gnuhealth-control to create database backups, install languages and updates. Make sure the version of gnuhealth-control ends on -openSUSE. gnuhealth-control should run as root, if in doubt. In case you want to install additional Tryton modules, you need to include the Tryton repository: zypper ar -f http://download.opensuse.org/repositories/Application:/ERP:/Tryton:/3.8/openSUSE_Leap_42.2 tryton diff --git a/gnuhealth_control b/gnuhealth-control similarity index 98% rename from gnuhealth_control rename to gnuhealth-control index 13a0221..16bcdf5 100644 --- a/gnuhealth_control +++ b/gnuhealth-control @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/bin/bash # gnuhealth-control # The GNU Health control center @@ -24,7 +24,7 @@ # ############################################################################## -VERSION="3.0.2-openSUSE" +VERSION="3.0.2.1-openSUSE" TRYTON_URL="http://downloads.tryton.org" GNUHEALTH_URL="http://ftp.gnu.org/gnu/health" @@ -44,7 +44,7 @@ usage: `basename $0` command [options] Command: version : Show version - backup : Backup he gnuhealth kernel, attach dir and database + backup : Backup the gnuhealth kernel, attach dir and database update : Download and install the patches getlang : Get and install / update the language pack code status : Show environment and GNU Health Tryton server status @@ -170,7 +170,7 @@ do_backup() cli_msg "INFO" "START Database Backup" | tee -a $INFOFILE - pg_dump $DB > $BACKDIR/backup\_$DB\_$BACKDATE || bailout + pg_dump --username=tryton -w --role=tryton $DB > $BACKDIR/backup\_$DB\_$BACKDATE || bailout cli_msg "INFO" "Compressing Database Backup" | tee -a $INFOFILE diff --git a/gnuhealth.changes b/gnuhealth.changes index 825690a..310df16 100644 --- a/gnuhealth.changes +++ b/gnuhealth.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Sat Feb 25 17:51:41 UTC 2017 - axel.braun@gmx.de + +- added DB-role to gnuhealh-control + updated documentation + +------------------------------------------------------------------- +Mon Feb 20 10:28:42 UTC 2017 - axel.braun@gmx.de + +- renamed gnuhealth_control to gnuhealth-control + fixed documentation + ------------------------------------------------------------------- Tue Feb 14 06:09:10 UTC 2017 - axel.braun@gmx.de diff --git a/gnuhealth.spec b/gnuhealth.spec index dc72783..67477b8 100644 --- a/gnuhealth.spec +++ b/gnuhealth.spec @@ -30,7 +30,7 @@ Release: 0 Url: http://health.gnu.org Source: http://ftp.gnu.org/gnu/health/%{name}-%{version}.tar.gz Source1: GNUHealth.README.SUSE -Source2: gnuhealth_control +Source2: gnuhealth-control BuildArch: noarch