summarylogtreecommitdiffstats
path: root/prosody.install
blob: 842a5f47098012a6727a2cb80dde93c7e007351f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
post_install() {
    echo ">> Documentation: https://wiki.archlinux.org/index.php/Prosody"
    echo
    echo ">> The unit file has been changed to Type=simple. "
    echo ">> You need to change the configuration back to daemonize=false (prosody default)."
}

post_upgrade() {
    post_install $1
}

post_remove() {
    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
}