We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a06cab3 commit 3ab7104Copy full SHA for 3ab7104
ct/openwebui.sh
@@ -33,6 +33,7 @@ function update_script() {
33
msg_info "Creating Backup"
34
mkdir -p /opt/open-webui-backup
35
cp -a /opt/open-webui/backend/data /opt/open-webui-backup/data || true
36
+ cp -a /opt/open-webui/.env /opt/open-webui-backup/.env || true
37
msg_ok "Created Backup"
38
39
msg_info "Removing legacy installation"
@@ -48,6 +49,7 @@ function update_script() {
48
49
msg_info "Restoring data"
50
mkdir -p /root/.open-webui
51
cp -a /opt/open-webui-backup/data/* /root/.open-webui/ || true
52
+ cp -a /opt/open-webui-backup/.env /root/.env || true
53
rm -rf /opt/open-webui-backup || true
54
msg_ok "Restored data"
55
0 commit comments