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 a640814 commit 6ad1ea0Copy full SHA for 6ad1ea0
ct/openwebui.sh
@@ -29,6 +29,11 @@ function update_script() {
29
fi
30
msg_info "Updating ${APP} (Patience)"
31
cd /opt/open-webui
32
+ mkdir /opt/open-webui-backup
33
+ cp -rf /opt/open-webui/backend/data /opt/open-webui-backup
34
+ git add -A
35
+ $STD git stash
36
+ $STD git reset --hard
37
output=$(git pull --no-rebase)
38
if echo "$output" | grep -q "Already up to date."; then
39
msg_ok "$APP is already up to date."
@@ -40,6 +45,8 @@ function update_script() {
40
45
$STD npm run build
41
46
cd ./backend
42
47
$STD pip install -r requirements.txt -U
48
+ cp -rf /opt/open-webui-backup/* /opt/open-webui/backend
49
+ $STD git stash pop
43
50
systemctl start open-webui.service
44
51
msg_ok "Updated Successfully"
52
exit
0 commit comments