From cd05313ac2a7e1d8d7db192dbbf017349f76ad67 Mon Sep 17 00:00:00 2001 From: Christoph Kieslich Date: Tue, 18 Mar 2025 13:15:23 +0100 Subject: [PATCH] Fix openwebui update script when backup directory already exists (#3213) --- ct/openwebui.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/openwebui.sh b/ct/openwebui.sh index 14a45f5e9d..738a043861 100644 --- a/ct/openwebui.sh +++ b/ct/openwebui.sh @@ -29,7 +29,7 @@ function update_script() { fi msg_info "Updating ${APP} (Patience)" 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 git add -A $STD git stash @@ -61,4 +61,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080${CL}"