diff options
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 -} |