From 752fff3c8f2f45d44decb9b1d56238308e79412a Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 6 May 2026 13:10:35 +0200 Subject: [PATCH] fix(pelican-panel): create backup subdirectory before copying storage (#14274) The update script tried to cp into /opt/backup/storage/app/ before the directory existed, causing a 'Not a directory' error when /opt/backup was previously a file or the subdirs were missing. Add mkdir -p to ensure the target directory exists. Fixes: #14268 --- ct/pelican-panel.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ct/pelican-panel.sh b/ct/pelican-panel.sh index 1a5ac5a5e..d508fa698 100644 --- a/ct/pelican-panel.sh +++ b/ct/pelican-panel.sh @@ -46,6 +46,7 @@ function update_script() { msg_ok "Stopped Service" cp -a /opt/pelican-panel/.env /opt/backup + mkdir -p /opt/backup/storage/app/ cp -a /opt/pelican-panel/storage/app/public /opt/backup/storage/app/ SQLITE_INSTALL=$(ls /opt/pelican-panel/database/*.sqlite 1>/dev/null 2>&1 && echo "true" || echo "false")