|
Lines 186-191
set_action()
Link Here
|
| 186 |
op="" |
186 |
op="" |
| 187 |
verbose="no" |
187 |
verbose="no" |
| 188 |
|
188 |
|
|
|
189 |
# Backwards compatible with old koha-*-zebra scripts |
| 190 |
# TODO: Remove once there's consensus to remove the legacy scripts |
| 191 |
used_script_name=$(basename $0) |
| 192 |
|
| 193 |
if [ "$used_script_name" != "koha-zebra" ]; then |
| 194 |
warn "Deprecated script used (${used_script_name})" |
| 195 |
|
| 196 |
case "$used_script_name" in |
| 197 |
koha-start-zebra) |
| 198 |
set_action "start" ;; |
| 199 |
koha-stop-zebra) |
| 200 |
set_action "stop" ;; |
| 201 |
koha-restart-zebra) |
| 202 |
set_action "restart" ;; |
| 203 |
*) |
| 204 |
break ;; |
| 205 |
esac |
| 206 |
fi |
| 207 |
# / Backwards compatible handling code |
| 208 |
|
| 189 |
# Read command line parameters |
209 |
# Read command line parameters |
| 190 |
while [ $# -gt 0 ]; do |
210 |
while [ $# -gt 0 ]; do |
| 191 |
|
211 |
|
| 192 |
- |
|
|