From 2b0e915bb105f08ab90c393e339b9914ca940272 Mon Sep 17 00:00:00 2001 From: frosty Date: Mon, 16 Mar 2026 23:04:13 -0400 Subject: [PATCH] docs+fix: update README.md, fix s6 and runit services --- README.md | 32 ++++++++++++++++++++++++++++++++ init/runit/run | 3 ++- init/s6/run | 5 +++-- 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