summaryrefslogtreecommitdiffstats
path: root/abs/extra/transmission/transmission-cli.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-12-02 17:23:35 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-12-02 17:23:35 (GMT)
commit6d9dd628c02db0885228005684bd81c1849dd0dd (patch)
tree01e24bbd60a60dca886ec9350fea85ebfe1134f8 /abs/extra/transmission/transmission-cli.install
parent216d08c3941deed5ac0c9325d6bf33dcdfa1f5ac (diff)
downloadlinhes_pkgbuild-6d9dd628c02db0885228005684bd81c1849dd0dd.zip
linhes_pkgbuild-6d9dd628c02db0885228005684bd81c1849dd0dd.tar.gz
linhes_pkgbuild-6d9dd628c02db0885228005684bd81c1849dd0dd.tar.bz2
transmission: 2.7.3
Diffstat (limited to 'abs/extra/transmission/transmission-cli.install')
-rw-r--r--abs/extra/transmission/transmission-cli.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/abs/extra/transmission/transmission-cli.install b/abs/extra/transmission/transmission-cli.install
new file mode 100644
index 0000000..94a829f
--- /dev/null
+++ b/abs/extra/transmission/transmission-cli.install
@@ -0,0 +1,17 @@
+post_install() {
+ cat << _EOF
+
+ If you want to run the Transmission daemon at boot do:
+ systemctl enable transmissiond
+_EOF
+
+post_upgrade
+passwd -l transmission &>/dev/null
+}
+
+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' -m -s /bin/false transmission
+ systemd-tmpfiles --create transmission.conf
+}