From ffe218b8394e0b84004f56100ca93a878caa1f00 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Mon, 16 Sep 2024 13:40:26 +0300 Subject: [PATCH] Update update.sh --- web/update.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/web/update.sh b/web/update.sh index 07dd318..1a40ea0 100644 --- a/web/update.sh +++ b/web/update.sh @@ -1,16 +1,27 @@ PHYRE_PHP=/usr/local/phyre/php/bin/php +systemctl stop phyre +apt-remove phyre -y +OS=$(lsb_release -si) +OS_LOWER=$(echo $OS | tr '[:upper:]' '[:lower:]') +OS_VERSION=$(lsb_release -sr) +rm -rf /usr/local/phyre/update/nginx +mkdir -p /usr/local/phyre/update/nginx +wget https://github.com/PhyreApps/PhyrePanelNGINX/raw/main/compilators/debian/nginx/dist/phyre-nginx-1.24.0-$OS_LOWER-$OS_VERSION.deb -O /usr/local/phyre/update/nginx/phyre-nginx-1.24.0-$OS_LOWER-$OS_VERSION.deb +dpkg -i /usr/local/phyre/update/nginx/phyre-nginx-1.24.0-$OS_LOWER-$OS_VERSION.deb + +# printf "Updating the panel...\n" wget https://raw.githubusercontent.com/PhyreApps/PhyrePanelNGINX/main/compilators/debian/nginx/nginx.conf -O /usr/local/phyre/nginx/conf/nginx.conf - +# mkdir -p /usr/local/phyre/ssl cp /usr/local/phyre/web/server/ssl/phyre.crt /usr/local/phyre/ssl/phyre.crt cp /usr/local/phyre/web/server/ssl/phyre.key /usr/local/phyre/ssl/phyre.key systemctl restart phyre -systemctl status phyre +#systemctl status phyre printf "Updating the database...\n" $PHYRE_PHP artisan migrate