Update composer if vendor folder does exists

pull/620/head
TimZ99 2018-08-19 00:50:02 +02:00
parent b7f6a37b10
commit b4099a4958
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
1 changed files with 8 additions and 3 deletions

View File

@ -28,7 +28,8 @@ echo done!
# remove old files except config.php.keep
echo Removing old files...
find . -type f ! -iname "*.keep" -delete
rm -rf cron/ docs/ puphpet/ src/ static/ vendor/
rm -rf cron/ docs/ puphpet/ src/ static/
echo OK
# unzip update file
@ -44,8 +45,12 @@ rm update.zip
# restore original config.php back from config.php.keep
mv config.php.keep config.php
# run php composer.phar install
php composer.phar install
# run php composer.phar install or update
if [ -d "vendor" ]; then
php composer.phar update
else
php composer.phar install
fi
echo Update finished!
echo Please finish the installation in your browser.