diff --git a/update/update-web-panel.sh b/update/update-web-panel.sh index ddafbdd..7f3ef11 100644 --- a/update/update-web-panel.sh +++ b/update/update-web-panel.sh @@ -33,24 +33,22 @@ cp -r /usr/local/phyre/update/web-panel-latest/thirdparty /usr/local/phyre/web/t cp -r /usr/local/phyre/update/web-panel-latest/db-migrate.sh /usr/local/phyre/web/db-migrate.sh chmod +x /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 -$PHYRE_PHP composer.phar i --no-interaction --no-progress -$PHYRE_PHP composer.phar dump-autoload --no-interaction +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 - -chmod +x ./db-migrate.sh ./db-migrate.sh service phyre restart