summarylogtreecommitdiffstats
path: root/crm_report.in
diff options
context:
space:
mode:
authorBrian Bidulock2017-05-19 08:19:08 -0600
committerBrian Bidulock2017-05-19 08:19:08 -0600
commitb5247045aa95d7c4840d141ef731d36f39912f98 (patch)
tree67c6ca6a3cc3f920122f0e07fb4b7c5b4d751d55 /crm_report.in
parentdd09c0289c2bb0a9e2a23ae1bb9fe0dd2151e1a4 (diff)
downloadaur-b5247045aa95d7c4840d141ef731d36f39912f98.tar.gz
establish sysusers and tmpfiles
Diffstat (limited to 'crm_report.in')
-rw-r--r--crm_report.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/crm_report.in b/crm_report.in
new file mode 100644
index 000000000000..c5dff3bdd4ae
--- /dev/null
+++ b/crm_report.in
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# Copyright (C) 2007 Dejan Muhamedagic <dmuhamedagic@suse.com>
+# Copyright (C) 2015 Kristoffer Gronlund <kgronlund@suse.com>
+# Copyright (C) 2015 Gao,Yan <ygao@suse.com>
+#
+# Replaced with crm report
+PARENT_COMMAND="$(ps -o comm= $PPID)"
+PROG="$(basename "$0")"
+
+die() {
+ echo "$PROG: $*"
+ exit 1
+}
+[ "$(basename "$PARENT_COMMAND")" = "crm" ] && die "called itself in a loop, aborting"
+if which crm > /dev/null 2>&1; then
+ crm report "$@"
+elif [ -x /usr/sbin/crm ]; then
+ /usr/sbin/crm report "$@"
+else
+ #die "crm_report has been deprecated: Please install crmsh, which replaces it"
+ /usr/sbin/crm_report.pacemaker "$@"
+fi
+