summarylogtreecommitdiffstats
path: root/setup-post.sh
diff options
context:
space:
mode:
authorAmish2022-05-26 22:34:21 +0530
committerAmish2022-05-26 22:34:21 +0530
commitfcd894142b4ccc893281058a83a03e7daf8f8f3d (patch)
treec219f7917446217fb9b4d0ef6675d411a5cbca6b /setup-post.sh
parent6cf1446360f4ab426c39e65047fe4830bfec2a3d (diff)
downloadaur-fcd894142b4ccc893281058a83a03e7daf8f8f3d.tar.gz
Switch to new upstream systemd service file
Diffstat (limited to 'setup-post.sh')
-rw-r--r--setup-post.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/setup-post.sh b/setup-post.sh
index 7057cc44a8d4..65fabd758807 100644
--- a/setup-post.sh
+++ b/setup-post.sh
@@ -1,4 +1,5 @@
# more logging, other config changes and use pam
echo -e 'logfiles=1\nlogfullfiles=1\ngotoone=1\nnoremember=1' >> "$archpkgdir"/etc/webmin/config
+sed -i -e 's:/var/webmin/miniserv.pid:/run/webmin.pid:g' "$archpkgdir"/opt/webmin/webmin-systemd
sed -i -e 's:^pidfile=.*$:pidfile=/run/webmin.pid:' "$archpkgdir"/etc/webmin/miniserv.conf
echo -e 'pam_only=1\npam_end=1\npam_conv=\nno_pam=0\nlogouttime=10' >> "$archpkgdir"/etc/webmin/miniserv.conf