diff options
author | Mike Gilbert <floppym@gentoo.org> | 2016-04-23 14:05:37 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2016-04-23 14:06:08 -0400 |
commit | ff7c2b479cd5485f64c70c244ecfcec75e89c036 (patch) | |
tree | 101c6551291fe30804b5e3a10aaae98bc16814a7 | |
parent | 9729d4fe97c1819b741895628f2ccdec579a3f09 (diff) | |
download | gentoo-ff7c2b479cd5485f64c70c244ecfcec75e89c036.tar.gz gentoo-ff7c2b479cd5485f64c70c244ecfcec75e89c036.tar.xz |
net-p2p/transmission: Create /var/lib/transmission in postinst
The openrc init script normally creates this, but this does not work for
systemd users.
Bug: https://bugs.gentoo.org/580932
Package-Manager: portage-2.2.28_p70
-rw-r--r-- | net-p2p/transmission/transmission-2.92.ebuild | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net-p2p/transmission/transmission-2.92.ebuild b/net-p2p/transmission/transmission-2.92.ebuild index 7a402d1a15f..4ae6553f1c3 100644 --- a/net-p2p/transmission/transmission-2.92.ebuild +++ b/net-p2p/transmission/transmission-2.92.ebuild @@ -149,7 +149,12 @@ pkg_postinst() { gnome2_icon_cache_update enewgroup transmission - enewuser transmission -1 -1 -1 transmission + enewuser transmission -1 -1 /var/lib/transmission transmission + + if [[ ! -e "${ROOT%/}"/var/lib/transmission ]]; then + mkdir -p "${ROOT%/}"/var/lib/transmission + chown transmission:transmission "${ROOT%/}"/var/lib/transmission + fi elog "If you use transmission-daemon, please, set 'rpc-username' and" elog "'rpc-password' (in plain text, transmission-daemon will hash it on" |