Update update-web-panel.sh

This commit is contained in:
Bozhidar Slaveykov 2024-04-07 13:52:30 +03:00
parent 6f3ad62406
commit 2bc7aa93e8

View file

@ -4,7 +4,32 @@ rm -rf /usr/local/phyre/update/web-panel-latest.zip
wget https://github.com/CloudVisionApps/PhyrePanelWebDist/raw/main/phyre-web-panel.zip
unzip phyre-web-panel.zip -d /usr/local/phyre/update/web-panel-latest
mv -bfv /usr/local/phyre/update/web-panel-latest/ /usr/local/phyre/web/
rm -rf /usr/local/phyre/web/vendor
rm -rf /usr/local/phyre/web/composer.lock
rm -rf /usr/local/phyre/web/routes
rm -rf /usr/local/phyre/web/public
rm -rf /usr/local/phyre/web/resources
rm -rf /usr/local/phyre/web/database
rm -rf /usr/local/phyre/web/config
rm -rf /usr/local/phyre/web/app
rm -rf /usr/local/phyre/web/bootstrap
rm -rf /usr/local/phyre/web/lang
rm -rf /usr/local/phyre/web/Modules
rm -rf /usr/local/phyre/web/thirdparty
cp -r /usr/local/phyre/update/web-panel-latest/vendor /usr/local/phyre/web/vendor
cp /usr/local/phyre/update/web-panel-latest/composer.lock /usr/local/phyre/web/composer.lock
cp -r /usr/local/phyre/update/web-panel-latest/routes /usr/local/phyre/web/routes
cp -r /usr/local/phyre/update/web-panel-latest/public /usr/local/phyre/web/public
cp -r /usr/local/phyre/update/web-panel-latest/resources /usr/local/phyre/web/resources
cp -r /usr/local/phyre/update/web-panel-latest/database /usr/local/phyre/web/database
cp -r /usr/local/phyre/update/web-panel-latest/config /usr/local/phyre/web/config
cp -r /usr/local/phyre/update/web-panel-latest/app /usr/local/phyre/web/app
cp -r /usr/local/phyre/update/web-panel-latest/bootstrap /usr/local/phyre/web/bootstrap
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