Lines 1-6
Link Here
|
1 |
#!/bin/sh |
1 |
#!/bin/sh |
2 |
# |
2 |
# |
3 |
# koha-disable -- disable Koha instances. |
3 |
# koha-disable - disable Koha instances. |
4 |
# Copyright 2010 Catalyst IT, Ltd |
4 |
# Copyright 2010 Catalyst IT, Ltd |
5 |
# |
5 |
# |
6 |
# This program is free software: you can redistribute it and/or modify |
6 |
# This program is free software: you can redistribute it and/or modify |
Lines 73-80
disable_instance()
Link Here
|
73 |
fi |
73 |
fi |
74 |
} |
74 |
} |
75 |
|
75 |
|
|
|
76 |
usage() |
77 |
{ |
78 |
local scriptname=$0 |
79 |
cat <<EOF |
80 |
Disables Koha instances. |
81 |
|
82 |
Usage: $scriptname instancename1 instancename2... |
83 |
|
84 |
EOF |
85 |
} |
86 |
|
76 |
# Parse command line. |
87 |
# Parse command line. |
77 |
[ "$#" > 1 ] || die "Usage: $0 instancename..." |
88 |
[ $# -ge 1 ] || ( usage ; die "Missing instance name..." ) |
78 |
|
89 |
|
79 |
restart_apache="no" |
90 |
restart_apache="no" |
80 |
|
91 |
|
Lines 96-99
if [ "$restart_apache" = "yes" ]; then
Link Here
|
96 |
fi |
107 |
fi |
97 |
|
108 |
|
98 |
exit 0 |
109 |
exit 0 |
99 |
|
|
|
100 |
- |