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