summarylogtreecommitdiffstats
path: root/setup-post.sh
diff options
context:
space:
mode:
authorAmish2022-07-05 12:56:54 +0530
committerAmish2022-07-05 12:56:54 +0530
commit3fd4b0ac8784e23bc1043602001185e3018f4fc9 (patch)
tree53e92c05bb8cc5ff83f81131c65c6dbdeb706263 /setup-post.sh
parenta6da7a10e402f9fb5847fece02cf96f384506e53 (diff)
downloadaur-3fd4b0ac8784e23bc1043602001185e3018f4fc9.tar.gz
Fix webmin.service file
Diffstat (limited to 'setup-post.sh')
-rw-r--r--setup-post.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-post.sh b/setup-post.sh
index 65fabd758807..67498a5300ad 100644
--- a/setup-post.sh
+++ b/setup-post.sh
@@ -1,5 +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:miniserv.pid:webmin.pid:g' -e 's:WEBMIN_VAR:/run:g' -e 's:WEBMIN_KILLCMD:/usr/bin/kill:g' -e 's:WEBMIN_CONFIG:/etc/webmin:g' -e 's:WEBMIN_LIBDIR:/opt/webmin: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