Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:GA
ha-cluster-bootstrap
0004-Warn-if-using-the-old-sleha-command-form-b...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-Warn-if-using-the-old-sleha-command-form-bnc-862798.patch of Package ha-cluster-bootstrap
From 9bf9a500886c216be9b251816634745d8ecc194d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <krig@koru.se> Date: Wed, 3 Jun 2015 12:44:29 +0200 Subject: [PATCH] Warn if using the old sleha-* command form (bnc#862798) --- scripts/ha-cluster-functions | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/ha-cluster-functions b/scripts/ha-cluster-functions index 6b42f3a..4ab4ba3 100644 --- a/scripts/ha-cluster-functions +++ b/scripts/ha-cluster-functions @@ -40,6 +40,15 @@ declare NET_IF="$(netstat -nr | grep '^0.0.0.0' | awk '{print ($(NF))}' 2>/dev/n declare IP_ADDRESS declare IP_NETWORK +# Warn if using the old sleha-* command form (bnc#862798) +if [[ "$0" =~ "sleha-" ]]; then + cat >&2 <<END +NOTE: $0 is obsolete. +Please use ${0/sleha/ha-cluster} instead. + +END +fi + # Broken out as special case for log() failure. Ordinarily you # should just use error() to terminate. _die() -- 2.1.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor