diff options
author | root <root@rshg054.dnsready.net> | 2013-08-11 01:21:34 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-11 01:21:34 -0700 |
commit | 18a41d682d6e91e0d28fce23eb75292f477bd620 (patch) | |
tree | bce8f660d7d0b6541cadbc49bf1bac2434e4c0c6 /community/prosody/prosody.install | |
parent | 0ade1da67addf154d93c6a6399b0a3d5a18a3336 (diff) |
Sun Aug 11 01:21:31 PDT 2013
Diffstat (limited to 'community/prosody/prosody.install')
-rw-r--r-- | community/prosody/prosody.install | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/community/prosody/prosody.install b/community/prosody/prosody.install deleted file mode 100644 index 792681038..000000000 --- a/community/prosody/prosody.install +++ /dev/null @@ -1,37 +0,0 @@ -post_install() { - if [ -z "`grep '^prosody:' /etc/group`" ]; then - groupadd -g 412 prosody - fi - if [ -z "`grep '^prosody:' /etc/passwd`" ]; then - useradd -u 412 -d /var/lib/prosody -g prosody -s /bin/false prosody - fi - - chown prosody:prosody var/lib/prosody - chown prosody:prosody var/log/prosody - - echo ">> Documentation: http://wiki.archlinux.org/index.php/Prosody" - - systemd-tmpfiles --create prosody.conf -} - -post_upgrade() { - post_install $1 -} - -post_remove() { - userdel prosody - - paths=(/etc/prosody /var/lib/prosody /var/log/prosody - /var/log/old/prosody) - - first=true - for path in ${paths[@]}; do - if [ -d $path ]; then - if $first; then - first=false - echo "==> Leftover Paths:" - fi - echo "==> $path" - fi - done -} |