summaryrefslogtreecommitdiff
path: root/pcr/ha-glue/ha-glue.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-23 01:28:34 -0700
committerroot <root@rshg054.dnsready.net>2013-05-23 01:28:34 -0700
commite0c1bfae73539aac5627d73dd70a299d274a0c10 (patch)
treec18288b635e64dfbcd616503eb079a951a43fafc /pcr/ha-glue/ha-glue.install
parentbdf2189826c1931878cedc2262f67f6fd3c0ef15 (diff)
Thu May 23 01:28:33 PDT 2013
Diffstat (limited to 'pcr/ha-glue/ha-glue.install')
-rw-r--r--pcr/ha-glue/ha-glue.install15
1 files changed, 5 insertions, 10 deletions
diff --git a/pcr/ha-glue/ha-glue.install b/pcr/ha-glue/ha-glue.install
index abfedb7c4..05e2160d3 100644
--- a/pcr/ha-glue/ha-glue.install
+++ b/pcr/ha-glue/ha-glue.install
@@ -1,22 +1,17 @@
_CLUSTER_USER=hacluster
_CLUSTER_GROUP=haclient
-_PREFIX=/usr
-_PREFIXETC=/etc
-_PREFIXVAR=/var
-_LCRSODIR=$PREFIX/libexec/lcrso
_DGID=666
_DUID=666
+
pre_install() {
getent group $_CLUSTER_GROUP >/dev/null || groupadd -r -g $_DGID $_CLUSTER_GROUP
- getent passwd $_CLUSTER_USER >/dev/null || useradd -r -g $_CLUSTER_GROUP -u $_DUID -d /var/lib/heartbeat/cores/hacluster -s /sbin/nologin -c "cluster user" ${_CLUSTER_USER}
+ getent passwd $_CLUSTER_USER >/dev/null || useradd -r -g $_CLUSTER_GROUP -u $_DUID -d /var/lib/heartbeat/cores/hacluster -s /sbin/nologin -c 'cluster user' $_CLUSTER_USER
}
post_install() {
- echo -e "\nNow you must install ha-resourceagent, ha-heartbeat and ha-pacemaker\n"
-
+ echo -e 'Now you must install ha-resourceagent, ha-heartbeat and ha-pacemaker'
}
post_remove() {
- echo -e "\nDeleting user $_CLUSTER_USER and group $_CLUSTER_GROUP "
- userdel $_CLUSTER_USER
- groupdel $_CLUSTER_GROUP
+ echo -e "Deleting user $_CLUSTER_USER and group $_CLUSTER_GROUP"
+ userdel $_CLUSTER_USER && groupdel $_CLUSTER_GROUP
}