Update update-web-panel.sh
This commit is contained in:
parent
a52a42c97a
commit
c6110f0000
1 changed files with 8 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue