Bug 10572: Add phone to message_transport_types table for new installs
[koha.git] / debian / scripts / koha-disable
index 50785ef..75e3997 100755 (executable)
@@ -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 <<EOF
+Disables Koha instances.
+
+Usage: $scriptname instancename1 instancename2...
+
+EOF
+}
+
 # Parse command line.
-[ "$#" > 1 ] || die "Usage: $0 instancename..."
+[ $# -ge 1 ] || ( usage ; die "Missing instance name..." )
 
 restart_apache="no"