From ca118d57db383f5efebc4d53cba11ccc8af5c9a9 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 29 Apr 2013 15:22:09 -0300 Subject: [PATCH] Bug 10104 - Followup: fix param check MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit As noted by Mason on bug 10101, the check was not working for zero arguments. Sponsored-by: Universidad Nacional de Córdoba Signed-off-by: Mason James Signed-off-by: Jared Camins-Esakov --- debian/scripts/koha-disable | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/debian/scripts/koha-disable b/debian/scripts/koha-disable index 50785efd89..75e3997058 100755 --- a/debian/scripts/koha-disable +++ b/debian/scripts/koha-disable @@ -1,6 +1,6 @@ #!/bin/sh # -# koha-disable -- disable Koha instances. +# koha-disable - disable Koha instances. # Copyright 2010 Catalyst IT, Ltd # # This program is free software: you can redistribute it and/or modify @@ -73,8 +73,19 @@ disable_instance() fi } +usage() +{ + local scriptname=$0 + cat < 1 ] || die "Usage: $0 instancename..." +[ $# -ge 1 ] || ( usage ; die "Missing instance name..." ) restart_apache="no" -- 2.20.1