Add runner script
This commit is contained in:
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