PKGBUILDs/extra/deluge/deluge.install
2009-10-09 21:23:22 -05:00

22 lines
506 B
Text

post_install() {
getent group deluge >/dev/null || usr/sbin/groupadd -g 125 deluge
getent passwd deluge >/dev/null || usr/sbin/useradd -c 'Deluge user' -u 125 -g deluge -d /srv/deluge -s /bin/false deluge
usr/bin/passwd -l deluge &>/dev/null
chown deluge.deluge srv/deluge -R
cat << _EOF
>>> Deluge's daemon is running with the "deluge" user. The default download directory is /srv/deluge/
_EOF
}
post_upgrade() {
post_install $1
}
pre_remove() {
usr/sbin/userdel deluge &> /dev/null
}