Skip to content

Commit

Permalink
Update update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Sep 16, 2024
1 parent 126b4ae commit ffe218b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions web/update.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ffe218b

Please sign in to comment.