Bug 9260: stop koha-run-backups complaining "missing ]"
Found because cron.daily/koha output contains the error "[: 97: missing ]" To test: 1. run koha-run-backups --days 2 --output /var/spool/koha 2. should see no output Sponsored-by: Library of the Józef Piłsudski Institute of America Signed-off-by: Vitor FERNANDES <vfernandes@keep.pt> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> I still get an error: ./koha-run-backups: 58: ./koha-run-backups: koha-list: not found But this patch fixes the syntax error Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
0becc0ab1d
commit
ab732ce20e
|
|
@ -58,7 +58,7 @@ done
|
|||
for name in $(koha-list --enabled | grep -Fxv demo)
|
||||
do
|
||||
koha-dump "$name" > /dev/null
|
||||
if [ -z "$dirname"]; then
|
||||
if [ -z "$dirname" ]; then
|
||||
backupdir="$( xmlstarlet sel -t -v 'yazgfs/config/backupdir' /etc/koha/sites/$name/koha-conf.xml )";
|
||||
else
|
||||
backupdir="$dirname/$name";
|
||||
|
|
|
|||
Loading…
Reference in New Issue