1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-04-20 05:48:07 +00:00

Fix openwebui update script when backup directory already exists (#3213)

This commit is contained in:
Christoph Kieslich 2025-03-18 13:15:23 +01:00 committed by GitHub
parent f65cf8cf9e
commit cd05313ac2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ function update_script() {
fi fi
msg_info "Updating ${APP} (Patience)" msg_info "Updating ${APP} (Patience)"
cd /opt/open-webui cd /opt/open-webui
mkdir /opt/open-webui-backup mkdir -p /opt/open-webui-backup
cp -rf /opt/open-webui/backend/data /opt/open-webui-backup cp -rf /opt/open-webui/backend/data /opt/open-webui-backup
git add -A git add -A
$STD git stash $STD git stash
@ -61,4 +61,4 @@ description
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}"