|
@@ -15,8 +15,8 @@ BOOKSTACK_DIR="/var/www/bookstack"
|
|
cd $BOOKSTACK_DIR || exit
|
|
cd $BOOKSTACK_DIR || exit
|
|
|
|
|
|
# Check update
|
|
# Check update
|
|
-git fetch origin release -n
|
|
|
|
-[ -n "$(git diff @ @{u})" ] || { echo "Up-to-date" && exit; }
|
|
|
|
|
|
+git fetch origin release -n --quiet
|
|
|
|
+[ -n "$(git diff --quiet @ @{u})" ] || { echo "Up-to-date" && exit; }
|
|
|
|
|
|
# Get database options from BookStack .env file
|
|
# Get database options from BookStack .env file
|
|
export $(cat "$BOOKSTACK_DIR/.env" | grep ^DB_ | xargs)
|
|
export $(cat "$BOOKSTACK_DIR/.env" | grep ^DB_ | xargs)
|
|
@@ -42,8 +42,8 @@ rclone copy "$BACKUP_DIR.tar.gz.gpg" od-1:/upload -vP
|
|
rm "$BACKUP_DIR.tar.gz.gpg"
|
|
rm "$BACKUP_DIR.tar.gz.gpg"
|
|
|
|
|
|
# Run BookStack upgrade commands
|
|
# Run BookStack upgrade commands
|
|
-git pull origin release
|
|
|
|
|
|
+git pull origin release --quiet
|
|
composer install --no-dev
|
|
composer install --no-dev
|
|
php artisan migrate
|
|
php artisan migrate
|
|
php artisan cache:clear
|
|
php artisan cache:clear
|
|
-php artisan view:clear
|
|
|
|
|
|
+php artisan view:clear
|