From efa94b314d6069b5fd9afca7f4ddb89a2bac8b21 Mon Sep 17 00:00:00 2001 From: Jali Date: Mon, 6 Apr 2026 21:39:23 +0200 Subject: [PATCH] Add runner script --- open-webui.conf | 4 ++++ run-open-webui | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 open-webui.conf create mode 100644 run-open-webui 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 +