diff --git a/open-webui.conf b/open-webui.conf new file mode 100644 index 0000000..11daf05 --- /dev/null +++ b/open-webui.conf @@ -0,0 +1,4 @@ +# Contains the configuration for the open-webui + +OPEN_WEBUI_HOME="#TARGET_DIR#" + diff --git a/run-open-webui b/run-open-webui new file mode 100644 index 0000000..1c83f9e --- /dev/null +++ b/run-open-webui @@ -0,0 +1,17 @@ +#!/usr/bin/bash +# In order to start open-webui, systemd will launch +# this script. It will set up the environment, activate the .venv and +# launch the service. + +# load the configuration +source /etc/open-webui/open-webui.conf + +# Enter the directory +cd $OPEN_WEBUI_HOME + +# Enter the virtual environment +source ./.venv/bin/activate + +# And start the service +open-webui serve +