http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12856 --- Comment #2 from Mason James <mtj@kohaaloha.com> --- (In reply to Mason James from comment #1)
(In reply to koha from comment #0)
When running 'koha-disable <instancename>' (eg. koha-disable myinstance) (on a fresh install of koha) I get:
/usr/sbin/koha-disable: 35: [: =: argument expected
just a little update... the new 'shellshock patched' version of bash may have fixed this bug :)
(thanks Liz!)
oops!, Liz was saying that her patched bash still has this bug some good news, its working for me. :) i'll add some more info... root@xen1:~# koha-enable k1 Instance k1 already enabled. root@xen1:~# bash -x koha-disable k1 + set -e + '[' 1 -ge 1 ']' + restart_apache=no + for name in '"$@"' + is_instance k1 + local instancename=k1 + grep -q -x k1 + find /etc/koha/sites -mindepth 1 -maxdepth 1 -type d -printf '%f\n' + return 0 + disable_instance k1 + local instancename=k1 + is_enabled k1 + local instancename=k1 + is_instance k1 + local instancename=k1 + grep -q -x k1 + find /etc/koha/sites -mindepth 1 -maxdepth 1 -type d -printf '%f\n' + return 0 + grep -q '^[[:space:]]*Include /etc/koha/apache-shared-disable.conf' /etc/apache2/sites-available/k1 + return 0 + sed -i 's:^\s*#\(\s*Include /etc/koha/apache-shared-disable.conf\)$:\1:' /etc/apache2/sites-available/k1 + return 0 + restart_apache=yes + '[' yes = yes ']' + /etc/init.d/apache2 restart Restarting web server: apache2 ... waiting . + exit 0 root@xen1:~# koha-list --disabled k1 -- You are receiving this mail because: You are watching all bug changes.