diff options
author | redfish | 2018-01-27 01:25:29 -0500 |
---|---|---|
committer | redfish | 2018-01-27 01:25:29 -0500 |
commit | b734df407732e7b12d38170895ba553028958f7f (patch) | |
tree | ed247849392382176e6fb966e219e9cc2a37221a /transmission-i2p.install | |
download | aur-b734df407732e7b12d38170895ba553028958f7f.tar.gz |
pkgbuild
Diffstat (limited to 'transmission-i2p.install')
-rw-r--r-- | transmission-i2p.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/transmission-i2p.install b/transmission-i2p.install new file mode 100644 index 000000000000..3382bf655891 --- /dev/null +++ b/transmission-i2p.install @@ -0,0 +1,21 @@ +post_install() { + getent passwd transmission-i2p &>/dev/null || { + echo -n ">>> Creating transmission-i2p user... " + useradd --system --user-group -m --home /var/lib/transmission-i2p transmission-i2p + echo "done" + + mkdir -p /var/lib/transmission-i2p/.config/transmission-daemon + + # TODO: generate config with transmission-i2p-daemon -d (need to fix the defaults in code first) + cp /usr/share/transmission-i2p/settings.json.example /var/lib/transmission-i2p/.config/transmission-daemon/settings.json + + sudo chown -R transmission-i2p:transmission-i2p /var/lib/transmission-i2p/ + } # NOTE: we do not autoremove user due to security concerns (Arch policy) + + + echo ">>> Enable BOB in i2pd.conf:" + echo ">>> [bob]" + echo ">>> enabled = true" + echo ">>> address = 127.0.0.1" + echo ">>> port = 2827" +} |