From dd64f41f1a0c7179d40575f2a4604ecb006e9010 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Tue, 5 May 2026 21:21:56 +0200 Subject: [PATCH] fix(pelican-panel): create backup subdirectory before copying storage 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")