diff --git a/installer.conf b/installer.conf new file mode 100644 index 0000000..2a8032f --- /dev/null +++ b/installer.conf @@ -0,0 +1,16 @@ +# This file contains the main configuration settings for the +# open-webui installer. + +# Name of the user to create for the service. +# This user will not be able to interactivly log in, but only to run the service. +# The default value is 'open-webui' +USER="open-webui" + + +# Name of the group, the user is using. +GROUP="open-webui" + +# The directory to install into. +TARGET_DIR="/opt/open-webui" + + diff --git a/open-webui.service b/open-webui.service new file mode 100644 index 0000000..f28a560 --- /dev/null +++ b/open-webui.service @@ -0,0 +1,12 @@ +[Unit] +Description=Open-WebUI Service +After=network.target + +[Service] +ExecStart=#TARGET_DIR#/run-open-webui +Restart=always +User=#USER# +Group=#GROUP# + +[Install] +WantedBy=multi-user.target