Skip to content

Commit b816ca6

Browse files
authored
Bookstack: fix copy of themes/uploads/storage (#4457)
1 parent d703a8a commit b816ca6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ct/bookstack.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ function update_script() {
3939
unzip -q "/opt/BookStack-${RELEASE}.zip" -d /opt
4040
mv "/opt/BookStack-${RELEASE}" /opt/bookstack
4141
cp /opt/bookstack-backup/.env /opt/bookstack/.env
42-
cp -r /opt/bookstack-backup/public/uploads/* /opt/bookstack/public/uploads/ || true
43-
cp -r /opt/bookstack-backup/storage/uploads/* /opt/bookstack/storage/uploads/ || true
44-
cp -r /opt/bookstack-backup/themes/* /opt/bookstack/themes/ || true
42+
[[ -d /opt/bookstack-backup/public/uploads ]] && cp -a /opt/bookstack-backup/public/uploads/. /opt/bookstack/public/uploads/
43+
[[ -d /opt/bookstack-backup/storage/uploads ]] && cp -a /opt/bookstack-backup/storage/uploads/. /opt/bookstack/storage/uploads/
44+
[[ -d /opt/bookstack-backup/themes ]] && cp -a /opt/bookstack-backup/themes/. /opt/bookstack/themes/
4545
cd /opt/bookstack
4646
export COMPOSER_ALLOW_SUPERUSER=1
4747
$STD composer install --no-dev

0 commit comments

Comments
 (0)