Skip to content

Commit cd05313

Browse files
authored
Fix openwebui update script when backup directory already exists (#3213)
1 parent f65cf8c commit cd05313

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ct/openwebui.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function update_script() {
2929
fi
3030
msg_info "Updating ${APP} (Patience)"
3131
cd /opt/open-webui
32-
mkdir /opt/open-webui-backup
32+
mkdir -p /opt/open-webui-backup
3333
cp -rf /opt/open-webui/backend/data /opt/open-webui-backup
3434
git add -A
3535
$STD git stash
@@ -61,4 +61,4 @@ description
6161
msg_ok "Completed Successfully!\n"
6262
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
6363
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
64-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}"
64+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}"

0 commit comments

Comments
 (0)