v2board/update.sh

13 lines
364 B
Bash
Raw Normal View History

2022-05-09 01:45:33 +08:00
#!/bin/bash
2020-03-18 18:12:19 +08:00
git fetch --all && git reset --hard origin/master && git pull origin master
2021-08-10 12:37:37 +08:00
rm -rf composer.lock composer.phar
2021-10-13 21:00:21 +08:00
wget https://github.com/composer/composer/releases/latest/download/composer.phar -O composer.phar
2020-10-14 15:27:11 +08:00
php composer.phar update -vvv
2020-03-18 18:12:19 +08:00
php artisan v2board:update
php artisan config:cache
2022-05-09 01:45:33 +08:00
if [ -f "/etc/init.d/bt" ]; then
2022-05-10 13:52:52 +08:00
chmod -R www $(pwd);
2022-05-09 01:45:33 +08:00
fi