aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosty <gabriel@bwaaa.monster>2026-03-16 23:04:13 -0400
committerfrosty <gabriel@bwaaa.monster>2026-03-16 23:04:13 -0400
commit2b0e915bb105f08ab90c393e339b9914ca940272 (patch)
tree3e0f5a52d4df8a6852bcff1302b0e22133797b86
parent1c4ec1e5bdc951ae037c1760df3b9e104b2b552f (diff)
downloadomnisearch-2b0e915bb105f08ab90c393e339b9914ca940272.tar.gz
docs+fix: update README.md, fix s6 and runit services
-rw-r--r--README.md32
-rwxr-xr-xinit/runit/run3
-rwxr-xr-xinit/s6/run5
3 files changed, 37 insertions, 3 deletions
diff --git a/README.md b/README.md
index 1817290..752ebf0 100644
--- a/README.md
+++ b/README.md
@@ -11,6 +11,38 @@ Create a config.ini, there is an example included in the root.
- beaker [(source)](https://git.bwaaa.monster/beaker/)
# First Setup
+Depending on your system, you may first need to install libcurl and libxml2.
+
+### Arch Linux
+```
+# pacman -S libxml2 libcurl
+```
+
+### Debian/Ubuntu
+```
+# apt install libxml2-dev libcurl4-openssl-dev
+```
+
+### Fedora
+```
+# dnf install libxml2-devel libcurl-devel
+```
+
+### openSUSE
+```
+# zypper install libxml2-devel libcurl-devel
+```
+
+### Alpine
+```
+# apk add libxml2-dev curl-dev
+```
+
+### Void
+```
+# xbps-install -S libxml2-devel libcurl-devel
+```
+
Firstly, install libbeaker:
```
$ git clone https://git.bwaaa.monster/beaker
diff --git a/init/runit/run b/init/runit/run
index 8ffb82a..24fffd1 100755
--- a/init/runit/run
+++ b/init/runit/run
@@ -1,2 +1,3 @@
#!/bin/sh
-exec chpst -u omnisearch:omnisearch /usr/bin/omnisearch 2>&1 \ No newline at end of file
+cd /etc/omnisearch
+exec chpst -u omnisearch:omnisearch /usr/bin/omnisearch \ No newline at end of file
diff --git a/init/s6/run b/init/s6/run
index f82a54e..bce82e0 100755
--- a/init/s6/run
+++ b/init/s6/run
@@ -1,3 +1,4 @@
-#!/bin/execlineb -P
+#! /bin/execlineb -P
foreground { s6-setsid -g }
-exec -c chpst -u omnisearch:omnisearch /usr/bin/omnisearch \ No newline at end of file
+cd /etc/omnisearch
+exec s6-setuidgid omnisearch /usr/bin/omnisearch \ No newline at end of file