X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=debian%2Fscripts%2Fkoha-zebra;h=aa065e69db55f275dfbd0e56256f8911a5cb4eff;hb=6197f92a3f88db2b727f1ece9b4687064aa21f13;hp=a2f47e79dca99b8de640071c88127df10b9d4621;hpb=9d1d3cd7fe5e7bec6fcb92f5553e4229b6d57f16;p=koha.git diff --git a/debian/scripts/koha-zebra b/debian/scripts/koha-zebra index a2f47e79dc..aa065e69db 100755 --- a/debian/scripts/koha-zebra +++ b/debian/scripts/koha-zebra @@ -186,6 +186,26 @@ set_action() op="" verbose="no" +# Backwards compatible with old koha-*-zebra scripts +# TODO: Remove once there's consensus to remove the legacy scripts +used_script_name=$(basename $0) + +if [ "$used_script_name" != "koha-zebra" ]; then + warn "Deprecated script used (${used_script_name})" + + case "$used_script_name" in + koha-start-zebra) + set_action "start" ;; + koha-stop-zebra) + set_action "stop" ;; + koha-restart-zebra) + set_action "restart" ;; + *) + break ;; + esac +fi +# / Backwards compatible handling code + # Read command line parameters while [ $# -gt 0 ]; do