mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
23 lines
506 B
Text
23 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
|
||
|
}
|
||
|
|