Add runner script
This commit is contained in:
4
open-webui.conf
Normal file
4
open-webui.conf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Contains the configuration for the open-webui
|
||||||
|
|
||||||
|
OPEN_WEBUI_HOME="#TARGET_DIR#"
|
||||||
|
|
||||||
17
run-open-webui
Normal file
17
run-open-webui
Normal file
@@ -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
|
||||||
|
|
||||||
Reference in New Issue
Block a user