File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ function update_script() {
3333 msg_info " Creating Backup"
3434 mkdir -p /opt/open-webui-backup
3535 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
36+ cp -a /opt/open-webui/.env /opt/open-webui-backup/.env || true
3737 msg_ok " Created Backup"
3838
3939 msg_info " Removing legacy installation"
@@ -49,7 +49,7 @@ function update_script() {
4949 msg_info " Restoring data"
5050 mkdir -p /root/.open-webui
5151 cp -a /opt/open-webui-backup/data/* /root/.open-webui/ || true
52- cp -a /opt/open-webui-backup/.env /root/.env
52+ cp -a /opt/open-webui-backup/.env /root/.env || true
5353 rm -rf /opt/open-webui-backup || true
5454 msg_ok " Restored data"
5555
You can’t perform that action at this time.
0 commit comments