summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorAlexander Verbovetsky <alik@ejik.org>2022-04-26 20:46:25 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-30 13:52:06 +0700
commit220a8e8a56d19364e10bd03c1f0563b858b1b23d (patch)
treee52eb09f140267fb8c3275a0973feb0628e6c834 /network
parent3800115ccef15aac9c308d24c21fce023c7b7614 (diff)
downloadslackbuilds-220a8e8a56d19364e10bd03c1f0563b858b1b23d.tar.gz
network/AdGuardHome: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/AdGuardHome/AdGuardHome.SlackBuild2
-rw-r--r--network/AdGuardHome/README.SBo5
-rw-r--r--network/AdGuardHome/rc.AdGuardHome3
3 files changed, 7 insertions, 3 deletions
diff --git a/network/AdGuardHome/AdGuardHome.SlackBuild b/network/AdGuardHome/AdGuardHome.SlackBuild
index 713ec42f9f..557eab04e2 100644
--- a/network/AdGuardHome/AdGuardHome.SlackBuild
+++ b/network/AdGuardHome/AdGuardHome.SlackBuild
@@ -74,8 +74,6 @@ install -m 0755 -o root -g root AdGuardHome $PKG/usr/sbin
install -m 0644 -o root -g root $CWD/rc.AdGuardHome \
$PKG/etc/rc.d/rc.AdGuardHome.new
-mkdir -p $PKG/var/lib/AdGuardHome
-
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/network/AdGuardHome/README.SBo b/network/AdGuardHome/README.SBo
index 98ba0c50a9..843901ae42 100644
--- a/network/AdGuardHome/README.SBo
+++ b/network/AdGuardHome/README.SBo
@@ -1,6 +1,11 @@
A simple init script /etc/rc.d/rc.AdGuardHome has been provided to run
AdGuard Home as a daemon.
+After first install, run
+# chmod +x /etc/rc.d/rc.AdGuardHome
+# /etc/rc.d/rc.AdGuardHome start
+Then go to the initial configuration wizard at http://localhost:3000
+
To start AdGuard Home automatically at system start, add the following
to /etc/rc.d/rc.local:
diff --git a/network/AdGuardHome/rc.AdGuardHome b/network/AdGuardHome/rc.AdGuardHome
index 23832689d1..f872e51e09 100644
--- a/network/AdGuardHome/rc.AdGuardHome
+++ b/network/AdGuardHome/rc.AdGuardHome
@@ -4,7 +4,7 @@
bin=/usr/sbin/AdGuardHome
config=/etc/AdGuardHome.yaml
workdir=/var/lib/AdGuardHome
-pidfile=/var/run/AdGuardHome.pid
+pidfile=/run/AdGuardHome.pid
start_AdGuardHome() {
echo "Starting AdGuard Home... "
@@ -12,6 +12,7 @@ start_AdGuardHome() {
echo "AdGuard Home is already running with PID $(cat ${pidfile})."
exit 0
fi
+ mkdir -p $workdir
nohup $bin --config $config --work-dir $workdir --no-check-update \
--pidfile $pidfile 0<&- &>/dev/null &
}