summaryrefslogtreecommitdiff
path: root/pcr/ganglia/ganglia.install
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-06-20 03:57:09 -0300
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-06-20 03:57:09 -0300
commit2ea4fee3286319c7f08c4ef0862be2e156f2a860 (patch)
treed870b05998633db8b4f6b2a47fac1eb7c0806e82 /pcr/ganglia/ganglia.install
parent44f0880cda2259246e136be7f9e0471b61734430 (diff)
downloadabslibre-2ea4fee3286319c7f08c4ef0862be2e156f2a860.tar.gz
abslibre-2ea4fee3286319c7f08c4ef0862be2e156f2a860.tar.bz2
abslibre-2ea4fee3286319c7f08c4ef0862be2e156f2a860.zip
ganglia: fixing type
Diffstat (limited to 'pcr/ganglia/ganglia.install')
-rw-r--r--pcr/ganglia/ganglia.install16
1 files changed, 5 insertions, 11 deletions
diff --git a/pcr/ganglia/ganglia.install b/pcr/ganglia/ganglia.install
index 814a993bc..6a196af1f 100644
--- a/pcr/ganglia/ganglia.install
+++ b/pcr/ganglia/ganglia.install
@@ -1,14 +1,7 @@
-# arg 1: the new package version
post_install() {
- post_upgrade
-}
-
-# arg 1: the new package version
-# arg 2: the old package version
-post_upgrade() {
if [ "`vercmp $2 3.4.0`" -lt 0 ]; then
echo 'WARNING: The ganglia package has been split. If you use the' \
- 'web frontend, you'll need to install the ganglia-web package as well.'
+ "web frontend, you'll need to install the ganglia-web package as well."
fi
id ganglia >& /dev/null
if [ $? -ne 0 ]; then
@@ -20,11 +13,12 @@ post_upgrade() {
install -d -o ganglia -g ganglia /var/lib/ganglia && install -d -o ganglia -g ganglia /var/lib/ganglia/rrds
}
-# arg 1: the old package version
+post_upgrade() {
+ post_install
+}
+
post_remove() {
echo 'Removing ganglia system group and user...'
userdel ganglia
echo 'NOTE: Please remove /var/lib/ganglia manually if it is no longer required.'
}
-
-# vim:set ts=2 sw=2 et: