2 getent group deluge >/dev/null 2>&1 || usr/sbin/groupadd -g 125 deluge
3 if getent passwd deluge > /dev/null 2>&1; then
4 usr/sbin/usermod -c 'Deluge user' -d /srv/deluge -s /bin/false deluge > /dev/null 2>&1
6 usr/sbin/useradd -c 'Deluge user' -u 125 -g deluge -d /srv/deluge -s /bin/false deluge
8 usr/bin/passwd -l deluge &>/dev/null
10 chown deluge.deluge srv/deluge -R
11 xdg-icon-resource forceupdate --theme hicolor &> /dev/null
14 >>> Deluge's daemon is running default with the "deluge" user. The default download directory is /srv/deluge/.
15 You can change the user by editing /etc/conf.d/deluged
24 getent passwd deluge >/dev/null 2>&1 && userdel deluge
25 getent group deluge >/dev/null 2>&1 && groupdel deluge
27 xdg-icon-resource forceupdate --theme hicolor &> /dev/null