summarylogtreecommitdiffstats
diff options
context:
space:
mode:
author65432020-07-18 18:55:01 +0200
committer65432020-07-18 18:55:01 +0200
commit900b404de3c6836122be07e636a86fb0567ba91b (patch)
tree702346be0915a0b62a3070b378eb89ae28d8b359
parentd113e3b3063a181c63fb775ce9c6443fab983a74 (diff)
downloadaur-900b404de3c6836122be07e636a86fb0567ba91b.tar.gz
set correct workdir
-rw-r--r--PKGBUILD4
-rw-r--r--i2p.initd3
2 files changed, 5 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 71344c8d2b2..fdda20c2c6f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: 6543 <6543 at obermui dot de>
pkgname=i2p-openrc
pkgver=1
-pkgrel=0
+pkgrel=1
pkgdesc="i2p init scripts for OpenRC"
arch=('any')
url="https://aur.archlinux.org/packages/i2p-openrc/"
@@ -9,7 +9,7 @@ license=('GPL3')
groups=()
depends=('i2p' 'openrc')
source=('i2p.initd')
-sha1sums=('5e15a3066bf111e07fc8f8f8c385b54eafe5f960')
+sha1sums=('f51e4a8f6985f64b4ff7b719f33d4bc91ad1962e')
package() {
install -Dm755 ${srcdir}/i2p.initd "$pkgdir"/etc/init.d/i2p
diff --git a/i2p.initd b/i2p.initd
index c19d9cc6193..47299e1b89a 100644
--- a/i2p.initd
+++ b/i2p.initd
@@ -7,6 +7,7 @@ pidfile="/run/i2p/$RC_SVCNAME.pid"
command="/usr/bin/java-service-wrapper"
command_args="/opt/i2p/wrapper.config wrapper.name=i2prouter wrapper.syslog.ident=i2prouter wrapper.daemonize=TRUE TZ=UTC"
command_background=1
+workdir=/opt/i2p
depend() {
use net
@@ -16,6 +17,8 @@ depend() {
start() {
ebegin "Start ${SVCNAME}"
+ cd $workdir
+ export HOME=$workdir
su -s /bin/sh -c "$command $command_args" $user
eend $?