mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 07:30:25 +00:00
update
This commit is contained in:
parent
bf81d265c8
commit
7ef5a95c19
12 changed files with 36 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
CURRENT_IP=$(curl -s ipinfo.io/ip)
|
CURRENT_IP=$(curl -s ipinfo.io/ip)
|
||||||
|
|
||||||
echo " \
|
echo " \
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
wget https://github.com/PhyreApps/PhyrePanelWebCompiledVersions/raw/main/phyre-web-panel.zip
|
wget https://github.com/PhyreApps/PhyrePanelWebCompiledVersions/raw/main/phyre-web-panel.zip
|
||||||
unzip -qq -o phyre-web-panel.zip -d /usr/local/phyre/web
|
unzip -qq -o phyre-web-panel.zip -d /usr/local/phyre/web
|
||||||
rm -rf phyre-web-panel.zip
|
rm -rf phyre-web-panel.zip
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
INSTALL_DIR="/phyre/install"
|
INSTALL_DIR="/phyre/install"
|
||||||
|
|
||||||
apt-get update && apt-get install ca-certificates
|
apt-get update && apt-get install ca-certificates
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
HOSTNAME=$(hostname)
|
HOSTNAME=$(hostname)
|
||||||
IP_ADDRESS=$(hostname -I | cut -d " " -f 1)
|
IP_ADDRESS=$(hostname -I | cut -d " " -f 1)
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
# Check dir exists
|
# Check dir exists
|
||||||
if [ ! -d "/usr/local/phyre/web" ]; then
|
if [ ! -d "/usr/local/phyre/web" ]; then
|
||||||
echo "PhyrePanel directory not found."
|
echo "PhyrePanel directory not found."
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
INSTALL_DIR="/phyre/install"
|
INSTALL_DIR="/phyre/install"
|
||||||
|
|
||||||
apt-get update && apt-get install ca-certificates
|
apt-get update && apt-get install ca-certificates
|
||||||
|
@ -55,6 +57,8 @@ service phyre start
|
||||||
PHYRE_PHP=/usr/local/phyre/php/bin/php
|
PHYRE_PHP=/usr/local/phyre/php/bin/php
|
||||||
|
|
||||||
ln -s $PHYRE_PHP /usr/bin/phyre-php
|
ln -s $PHYRE_PHP /usr/bin/phyre-php
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
HOSTNAME=$(hostname)
|
HOSTNAME=$(hostname)
|
||||||
IP_ADDRESS=$(hostname -I | cut -d " " -f 1)
|
IP_ADDRESS=$(hostname -I | cut -d " " -f 1)
|
||||||
|
|
||||||
|
@ -67,12 +71,16 @@ DISTRO_NAME=${DISTRO_NAME//\"/} # Remove quotes from name string
|
||||||
LOG_JSON='{"os": "'$DISTRO_NAME-$DISTRO_VERSION'", "host_name": "'$HOSTNAME'", "ip": "'$IP_ADDRESS'"}'
|
LOG_JSON='{"os": "'$DISTRO_NAME-$DISTRO_VERSION'", "host_name": "'$HOSTNAME'", "ip": "'$IP_ADDRESS'"}'
|
||||||
|
|
||||||
curl -s https://phyrepanel.com/api/phyre-installation-log -X POST -H "Content-Type: application/json" -d "$LOG_JSON"
|
curl -s https://phyrepanel.com/api/phyre-installation-log -X POST -H "Content-Type: application/json" -d "$LOG_JSON"
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
wget https://github.com/PhyreApps/PhyrePanelWebCompiledVersions/raw/main/phyre-web-panel.zip
|
wget https://github.com/PhyreApps/PhyrePanelWebCompiledVersions/raw/main/phyre-web-panel.zip
|
||||||
unzip -qq -o phyre-web-panel.zip -d /usr/local/phyre/web
|
unzip -qq -o phyre-web-panel.zip -d /usr/local/phyre/web
|
||||||
rm -rf phyre-web-panel.zip
|
rm -rf phyre-web-panel.zip
|
||||||
|
|
||||||
chmod 711 /home
|
chmod 711 /home
|
||||||
chmod -R 750 /usr/local/phyre
|
chmod -R 750 /usr/local/phyre
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
# Check dir exists
|
# Check dir exists
|
||||||
if [ ! -d "/usr/local/phyre/web" ]; then
|
if [ ! -d "/usr/local/phyre/web" ]; then
|
||||||
echo "PhyrePanel directory not found."
|
echo "PhyrePanel directory not found."
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
CURRENT_IP=$(curl -s ipinfo.io/ip)
|
CURRENT_IP=$(curl -s ipinfo.io/ip)
|
||||||
|
|
||||||
echo " \
|
echo " \
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
wget https://github.com/PhyreApps/PhyrePanelWebCompiledVersions/raw/main/phyre-web-panel.zip
|
wget https://github.com/PhyreApps/PhyrePanelWebCompiledVersions/raw/main/phyre-web-panel.zip
|
||||||
unzip -qq -o phyre-web-panel.zip -d /usr/local/phyre/web
|
unzip -qq -o phyre-web-panel.zip -d /usr/local/phyre/web
|
||||||
rm -rf phyre-web-panel.zip
|
rm -rf phyre-web-panel.zip
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
INSTALL_DIR="/phyre/install"
|
INSTALL_DIR="/phyre/install"
|
||||||
|
|
||||||
apt-get update && apt-get install ca-certificates
|
apt-get update && apt-get install ca-certificates
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
HOSTNAME=$(hostname)
|
HOSTNAME=$(hostname)
|
||||||
IP_ADDRESS=$(hostname -I | cut -d " " -f 1)
|
IP_ADDRESS=$(hostname -I | cut -d " " -f 1)
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
# Check dir exists
|
# Check dir exists
|
||||||
if [ ! -d "/usr/local/phyre/web" ]; then
|
if [ ! -d "/usr/local/phyre/web" ]; then
|
||||||
echo "PhyrePanel directory not found."
|
echo "PhyrePanel directory not found."
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
INSTALL_DIR="/phyre/install"
|
INSTALL_DIR="/phyre/install"
|
||||||
|
|
||||||
apt-get update && apt-get install ca-certificates
|
apt-get update && apt-get install ca-certificates
|
||||||
|
@ -57,6 +59,8 @@ PHYRE_PHP=/usr/local/phyre/php/bin/php
|
||||||
ln -s $PHYRE_PHP /usr/bin/phyre-php
|
ln -s $PHYRE_PHP /usr/bin/phyre-php
|
||||||
|
|
||||||
curl -s https://phyrepanel.com/api/phyre-installation-log -X POST -H "Content-Type: application/json" -d '{"os": "ubuntu-22.04"}'
|
curl -s https://phyrepanel.com/api/phyre-installation-log -X POST -H "Content-Type: application/json" -d '{"os": "ubuntu-22.04"}'
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
HOSTNAME=$(hostname)
|
HOSTNAME=$(hostname)
|
||||||
IP_ADDRESS=$(hostname -I | cut -d " " -f 1)
|
IP_ADDRESS=$(hostname -I | cut -d " " -f 1)
|
||||||
|
|
||||||
|
@ -69,12 +73,16 @@ DISTRO_NAME=${DISTRO_NAME//\"/} # Remove quotes from name string
|
||||||
LOG_JSON='{"os": "'$DISTRO_NAME-$DISTRO_VERSION'", "host_name": "'$HOSTNAME'", "ip": "'$IP_ADDRESS'"}'
|
LOG_JSON='{"os": "'$DISTRO_NAME-$DISTRO_VERSION'", "host_name": "'$HOSTNAME'", "ip": "'$IP_ADDRESS'"}'
|
||||||
|
|
||||||
curl -s https://phyrepanel.com/api/phyre-installation-log -X POST -H "Content-Type: application/json" -d "$LOG_JSON"
|
curl -s https://phyrepanel.com/api/phyre-installation-log -X POST -H "Content-Type: application/json" -d "$LOG_JSON"
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
wget https://github.com/PhyreApps/PhyrePanelWebCompiledVersions/raw/main/phyre-web-panel.zip
|
wget https://github.com/PhyreApps/PhyrePanelWebCompiledVersions/raw/main/phyre-web-panel.zip
|
||||||
unzip -qq -o phyre-web-panel.zip -d /usr/local/phyre/web
|
unzip -qq -o phyre-web-panel.zip -d /usr/local/phyre/web
|
||||||
rm -rf phyre-web-panel.zip
|
rm -rf phyre-web-panel.zip
|
||||||
|
|
||||||
chmod 711 /home
|
chmod 711 /home
|
||||||
chmod -R 750 /usr/local/phyre
|
chmod -R 750 /usr/local/phyre
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
# Check dir exists
|
# Check dir exists
|
||||||
if [ ! -d "/usr/local/phyre/web" ]; then
|
if [ ! -d "/usr/local/phyre/web" ]; then
|
||||||
echo "PhyrePanel directory not found."
|
echo "PhyrePanel directory not found."
|
||||||
|
|
Loading…
Reference in a new issue