PKGBUILDs/extra/deluge/deluge.install

23 lines
506 B
Text
Raw Normal View History

2009-10-10 02:23:22 +00:00
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
}