File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments