Compare commits

..

2 Commits

Author SHA1 Message Date
MickLesk
dd64f41f1a 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
2026-05-05 21:21:56 +02:00
community-scripts-pr-app[bot]
a3e147cf20 Update CHANGELOG.md (#14270)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-05-05 19:06:04 +00:00

View File

@@ -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")