mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 07:30:25 +00:00
Update update.sh
This commit is contained in:
parent
126b4ae3bf
commit
ffe218b839
1 changed files with 13 additions and 2 deletions
|
@ -1,16 +1,27 @@
|
||||||
PHYRE_PHP=/usr/local/phyre/php/bin/php
|
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"
|
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
|
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
|
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.crt /usr/local/phyre/ssl/phyre.crt
|
||||||
cp /usr/local/phyre/web/server/ssl/phyre.key /usr/local/phyre/ssl/phyre.key
|
cp /usr/local/phyre/web/server/ssl/phyre.key /usr/local/phyre/ssl/phyre.key
|
||||||
|
|
||||||
systemctl restart phyre
|
systemctl restart phyre
|
||||||
systemctl status phyre
|
#systemctl status phyre
|
||||||
|
|
||||||
printf "Updating the database...\n"
|
printf "Updating the database...\n"
|
||||||
$PHYRE_PHP artisan migrate
|
$PHYRE_PHP artisan migrate
|
||||||
|
|
Loading…
Reference in a new issue