Koha/debian
Robin Sheat 266f2a3a9f Bug 10735: prevent koha-dump from aborting if backupdir undefined
Older versions of Koha didn't have <backupdir>...</backupdir> defined in
koha-conf.xml. The koha-dump script is aware of this, and checks to see
if it's there. However, if it's not, xmlstarlet returns a non-0 error
code which causes the script to abort due to running under set -e.

Test plan:
 * Remove backupdir from koha-conf.xml
 * Run koha-dump, notice that it doesn't do backups
 * Apply patch
 * Run koha-dump again, notice that it does do backups

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
The fallback method works as described. It might be made more robust
like checking for dir existence (thinking of older instances upgrades).
But it certainly belongs to another bug report.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
As Tomas said, it would be better to alert the user if the backupdir tag
does not exist (or contains a nonexistent directory) in the config file.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-12-23 15:55:03 +00:00
..
docs Bug 10733: Memcached on package installs 2013-10-30 03:27:51 +00:00
scripts Bug 10735: prevent koha-dump from aborting if backupdir undefined 2013-12-23 15:55:03 +00:00
source
templates Bug 10733: Memcached on package installs 2013-10-30 03:27:51 +00:00
bd-to-depends
build-git-snapshot Bug 11284: Packaging updates for master branch 2013-11-27 15:37:45 +00:00
changelog Bug 11284: Packaging updates for master branch 2013-11-27 15:37:45 +00:00
compat
control Bug 11284: Packaging updates for master branch 2013-11-27 15:37:45 +00:00
control.in Bug 10733: add 'memcached' as suggested dependency 2013-10-30 03:27:31 +00:00
copyright
koha-common.config Bug 10574 - mute the "upgrading from 3.2" message 2013-09-06 14:54:53 +00:00
koha-common.cron.d Bug 10379: silence zebra rebuild cron when no instances are enabled 2013-06-26 08:55:23 -07:00
koha-common.cron.daily
koha-common.cron.hourly
koha-common.default Bug 10617 - koha-common init script cleanup 2013-09-21 17:39:37 +00:00
koha-common.dirs
koha-common.docs Bug 10802: make Debian package install history.txt 2013-09-16 15:27:16 +00:00
koha-common.init Bug 10624: add 'status' option switch for the packages init script 2013-10-09 04:53:42 +00:00
koha-common.install Bug 10802: make Debian package install history.txt 2013-09-16 15:27:16 +00:00
koha-common.logrotate
koha-common.postinst
koha-common.README.Debian
koha-common.templates
koha-post-install-setup
koha.apache-ports
koha.config
koha.dirs
koha.install
koha.postinst
koha.postrm
koha.prerm
koha.README.Debian
list-deps Bug 9592 - update dependencies, allow blacklisting 2013-02-15 08:06:51 -05:00
README.build
rules Bug 10802: make Debian package install history.txt 2013-09-16 15:27:16 +00:00
unavailable.html
update-control

In order to build .deb packages, following debian packages need to be present
(installed): 
devscripts
pbuilder
dh-make
fakeroot

As root (or sudo) execute:
pbuilder create

Executing build-git-snapshot without any arguments will leave package and the
rest in some pbuilder dir, eg. /var/cache/pbuilder/result It is highly
recommended that --buildresult option is used.