[arch-commits] Commit in transmission/trunk (PKGBUILD transmission-cli.install)
Tom Gundersen
tomegun at archlinux.org
Fri Sep 21 20:29:19 UTC 2012
Date: Friday, September 21, 2012 @ 16:29:18
Author: tomegun
Revision: 166912
upgpkg: transmission 2.61-4
create user/group also at install, not only on update
Modified:
transmission/trunk/PKGBUILD
transmission/trunk/transmission-cli.install
--------------------------+
PKGBUILD | 2 +-
transmission-cli.install | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-09-21 18:28:21 UTC (rev 166911)
+++ PKGBUILD 2012-09-21 20:29:18 UTC (rev 166912)
@@ -4,7 +4,7 @@
pkgbase=transmission
pkgname=('transmission-cli' 'transmission-gtk' 'transmission-qt')
pkgver=2.61
-pkgrel=3
+pkgrel=4
arch=('i686' 'x86_64')
url="http://www.transmissionbt.com/"
license=('MIT')
Modified: transmission-cli.install
===================================================================
--- transmission-cli.install 2012-09-21 18:28:21 UTC (rev 166911)
+++ transmission-cli.install 2012-09-21 20:29:18 UTC (rev 166912)
@@ -3,14 +3,15 @@
If you want to run the Transmission daemon at boot,
add transmissiond to the DAEMONS array in /etc/rc.conf.
+_EOF
-_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
- passwd -l transmission &>/dev/null
systemd-tmpfiles --create transmission.conf
}
More information about the arch-commits
mailing list