diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-12-22 00:42:45 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-12-26 22:21:31 -0500 |
commit | 8461d2ac3e9abbe1254ab7d2518d6ae1662d7030 (patch) | |
tree | 26817a3f00c6551bed100ae07fb1acaef691bce5 /social/puppet/puppet.install | |
parent | 2798b055cbeeb2580b2677e5c223fca7654e1103 (diff) | |
download | abslibre-8461d2ac3e9abbe1254ab7d2518d6ae1662d7030.tar.gz abslibre-8461d2ac3e9abbe1254ab7d2518d6ae1662d7030.tar.bz2 abslibre-8461d2ac3e9abbe1254ab7d2518d6ae1662d7030.zip |
handle duplicates between social and pcr
Diffstat (limited to 'social/puppet/puppet.install')
-rw-r--r-- | social/puppet/puppet.install | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/social/puppet/puppet.install b/social/puppet/puppet.install deleted file mode 100644 index 928df566b..000000000 --- a/social/puppet/puppet.install +++ /dev/null @@ -1,46 +0,0 @@ -# Puppet: Installer: Arch -# Maintainer: Thomas S Hatch <thatch45 (at) Gmail (dot) com> -# Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com> -# Contributor: Miah Johnson <Miah (at) chia-pet dot org> - -pre_install() { - getent group puppet &>/dev/null || groupadd -r puppet -g 52 &>/dev/null - getent passwd puppet &>/dev/null || useradd -r -u 52 -g puppet -d /var/lib/puppet -s /sbin/nologin -c "Puppet" puppet &>/dev/null || : -} - -pre_upgrade() { - pre_install - usermod -d /var/lib/puppet puppet &>/dev/null || : -} - -post_install() { - : -} - -pre_remove() { -if [ -f /var/run/puppetmasterd.pid ]; then - PIDOF=$(pidof -xo %PPID puppetmasterd) - PIDFILE=$(cat /var/run/puppetmasterd.pid) - if [ $PIDOF -eq $PIDFILE ]; then - /etc/rc.d/puppetmaster stop - fi -fi - -if [ -f /var/run/puppetd.pid ]; then - PIDOF=$(pidof -xo %PPID puppetd) - PIDFILE=$(cat /var/run/puppetd.pid) - if [ $PIDOF -eq $PIDFILE ]; then - /etc/rc.d/puppet stop - fi -fi -} - -post_remove() { - # Remove user and group - userdel puppet -} - -op=$1 -shift - -$op "$@" |