summaryrefslogtreecommitdiffstats
path: root/munin-node/munin-node.install
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-12-16 11:51:24 +0100
committerFlorian Pritz <bluewind@xinu.at>2012-12-16 11:51:24 +0100
commitc6000c9d9949b3326fb82f02431899ab6774b960 (patch)
tree2453cd564b0f382f3d8ccd893df8ebe2e9aeda71 /munin-node/munin-node.install
parent453f0f12918af35bd8e1e5f049841360f37d62e4 (diff)
downloadaur-packages-c6000c9d9949b3326fb82f02431899ab6774b960.tar.gz
aur-packages-c6000c9d9949b3326fb82f02431899ab6774b960.tar.xz
big cleanup
Diffstat (limited to 'munin-node/munin-node.install')
-rw-r--r--munin-node/munin-node.install34
1 files changed, 0 insertions, 34 deletions
diff --git a/munin-node/munin-node.install b/munin-node/munin-node.install
deleted file mode 100644
index 2f190f4..0000000
--- a/munin-node/munin-node.install
+++ /dev/null
@@ -1,34 +0,0 @@
-# arg 1: the new package version
-post_install () {
-
-# Check user/group munin exists
-
- getent group munin > /dev/null || groupadd munin
- getent passwd munin > /dev/null || useradd -c "Munin system monitor" -g munin -s /bin/false -d /var/munin munin
-
-# Fix permissions
- chown munin.munin -R /var/log/munin /var/munin /var/run/munin
-
-
-# Do basic configuration
-
- echo "==> Configuring default plugins for this system"
- /sbin/munin-node-configure --shell | sh
-
- echo "==> To use the SNMP plugins you will need perl-net-snmp"
-
-}
-
-pre_remove() {
-
-# Only remove the user if munin is not installed,
-# because both packages need this user
- killall munin-node
- pacman -Q munin >& /dev/null || ( /usr/sbin/userdel munin >& /dev/null ; \
- /usr/sbin/groupdel munin >& /dev/null )
-}
-
-op=$1
-shift
-
-$op $*