diff options
Diffstat (limited to 'testing/transmission/transmission-cli.install')
-rw-r--r-- | testing/transmission/transmission-cli.install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/transmission/transmission-cli.install b/testing/transmission/transmission-cli.install new file mode 100644 index 000000000..d99dcf8b7 --- /dev/null +++ b/testing/transmission/transmission-cli.install @@ -0,0 +1,16 @@ +post_install() { + cat << _EOF + + If you want to run the Transmission daemon at boot, + add transmissiond to the DAEMONS array in /etc/rc.conf. + +_EOF +} + +post_upgrade() { + # create user/group that the daemon will run as by default, do not delete this on uninstall, as it will own files + getent group transmission >/dev/null || groupadd -g 169 transmission + getent passwd transmission >/dev/null || useradd -c 'Transmission BitTorrent Client' -u 169 -g transmission -b '/var/lib' -s /bin/false transmission + passwd -l transmission &>/dev/null + systemd-tmpfiles --create transmission.conf +} |