diff --git a/update/update-web-panel.sh b/update/update-web-panel.sh index 777989a..6ee753e 100644 --- a/update/update-web-panel.sh +++ b/update/update-web-panel.sh @@ -31,7 +31,24 @@ cp -r /usr/local/phyre/update/web-panel-latest/lang /usr/local/phyre/web/lang cp -r /usr/local/phyre/update/web-panel-latest/Modules /usr/local/phyre/web/Modules cp -r /usr/local/phyre/update/web-panel-latest/thirdparty /usr/local/phyre/web/thirdparty -chmod +x /usr/local/phyre/web/db-migrate.sh -/usr/local/phyre/web/db-migrate.sh + +cd /usr/local/phyre/web + + + +PHYRE_PHP=/usr/local/phyre/php/bin/php + +$PHYRE_PHP -v +$PHYRE_PHP -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" +$PHYRE_PHP ./composer-setup.php +$PHYRE_PHP -r "unlink('composer-setup.php');" + +rm -rf composer.lock +COMPOSER_ALLOW_SUPERUSER=1 $PHYRE_PHP composer.phar i --no-interaction --no-progress +COMPOSER_ALLOW_SUPERUSER=1 $PHYRE_PHP composer.phar dump-autoload --no-interaction --no-progress + + +chmod +x ./db-migrate.sh +./db-migrate.sh service phyre restart diff --git a/web/db-migrate.sh b/web/db-migrate.sh index 46c0060..bca675a 100644 --- a/web/db-migrate.sh +++ b/web/db-migrate.sh @@ -1,9 +1,5 @@ PHYRE_PHP=/usr/local/phyre/php/bin/php -rm -rf composer.lock -$PHYRE_PHP composer.phar i --no-interaction --no-progress -$PHYRE_PHP composer.phar dump-autoload --no-interaction --no-progress - $PHYRE_PHP artisan migrate #$PHYRE_PHP artisan l5-swagger:generate