mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 00:50:32 +00:00
update
This commit is contained in:
parent
a41da28d55
commit
60a1d5f979
7 changed files with 66 additions and 3 deletions
|
@ -2,12 +2,14 @@
|
|||
|
||||
# get content from file
|
||||
INSTALL_BASE=$(cat ubuntu-20.04/install-partial/install_base.sh)
|
||||
INSTALL_LOG=$(cat ubuntu-20.04/install-partial/install_log.sh)
|
||||
DOWNLOAD_WEB=$(cat ubuntu-20.04/install-partial/download_web.sh)
|
||||
INSTALL_WEB=$(cat ubuntu-20.04/install-partial/install_web.sh)
|
||||
|
||||
# create installer
|
||||
rm -rf ubuntu-20.04/install.sh
|
||||
echo "$INSTALL_BASE" >> ubuntu-20.04/install.sh
|
||||
echo "$INSTALL_LOG" >> ubuntu-20.04/install.sh
|
||||
echo "$DOWNLOAD_WEB" >> ubuntu-20.04/install.sh
|
||||
echo "$INSTALL_WEB" >> ubuntu-20.04/install.sh
|
||||
|
||||
|
@ -16,11 +18,13 @@ echo "$INSTALL_WEB" >> ubuntu-20.04/install.sh
|
|||
|
||||
# get content from file
|
||||
INSTALL_BASE=$(cat ubuntu-22.04/install-partial/install_base.sh)
|
||||
INSTALL_LOG=$(cat ubuntu-22.04/install-partial/install_log.sh)
|
||||
DOWNLOAD_WEB=$(cat ubuntu-22.04/install-partial/download_web.sh)
|
||||
INSTALL_WEB=$(cat ubuntu-22.04/install-partial/install_web.sh)
|
||||
|
||||
# create installer
|
||||
rm -rf ubuntu-22.04/install.sh
|
||||
echo "$INSTALL_BASE" >> ubuntu-22.04/install.sh
|
||||
echo "$INSTALL_LOG" >> ubuntu-22.04/install.sh
|
||||
echo "$DOWNLOAD_WEB" >> ubuntu-22.04/install.sh
|
||||
echo "$INSTALL_WEB" >> ubuntu-22.04/install.sh
|
||||
|
|
|
@ -56,5 +56,3 @@ service phyre start
|
|||
PHYRE_PHP=/usr/local/phyre/php/bin/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-20.04"}'
|
||||
|
|
13
installers/ubuntu-20.04/install-partial/install_log.sh
Executable file
13
installers/ubuntu-20.04/install-partial/install_log.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
HOSTNAME=$(hostname)
|
||||
IP_ADDRESS=$(hostname -I | cut -d " " -f 1)
|
||||
|
||||
DISTRO_VERSION=$(cat /etc/os-release | grep -w "VERSION_ID" | cut -d "=" -f 2)
|
||||
DISTRO_VERSION=${DISTRO_VERSION//\"/} # Remove quotes from version string
|
||||
|
||||
DISTRO_NAME=$(cat /etc/os-release | grep -w "NAME" | cut -d "=" -f 2)
|
||||
DISTRO_NAME=${DISTRO_NAME//\"/} # Remove quotes from name string
|
||||
|
||||
LOG_JSON='{"os": "'$DISTRO_NAME-$DISTRO_VERSION'", "hostname": "'$HOSTNAME'", "ip": "'$IP_ADDRESS'"}'
|
||||
|
||||
curl -s https://phyrepanel.com/api/phyre-installation-log -X POST -H "Content-Type: application/json" -d $LOG_JSON
|
||||
|
|
@ -56,8 +56,18 @@ service phyre start
|
|||
PHYRE_PHP=/usr/local/phyre/php/bin/php
|
||||
|
||||
ln -s $PHYRE_PHP /usr/bin/phyre-php
|
||||
HOSTNAME=$(hostname)
|
||||
IP_ADDRESS=$(hostname -I | cut -d " " -f 1)
|
||||
|
||||
curl -s https://phyrepanel.com/api/phyre-installation-log -X POST -H "Content-Type: application/json" -d '{"os": "ubuntu-20.04"}'
|
||||
DISTRO_VERSION=$(cat /etc/os-release | grep -w "VERSION_ID" | cut -d "=" -f 2)
|
||||
DISTRO_VERSION=${DISTRO_VERSION//\"/} # Remove quotes from version string
|
||||
|
||||
DISTRO_NAME=$(cat /etc/os-release | grep -w "NAME" | cut -d "=" -f 2)
|
||||
DISTRO_NAME=${DISTRO_NAME//\"/} # Remove quotes from name string
|
||||
|
||||
LOG_JSON='{"os": "'$DISTRO_NAME-$DISTRO_VERSION'", "hostname": "'$HOSTNAME'", "ip": "'$IP_ADDRESS'"}'
|
||||
|
||||
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
|
||||
|
|
13
installers/ubuntu-22.04/install-partial/install_log.sh
Executable file
13
installers/ubuntu-22.04/install-partial/install_log.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
HOSTNAME=$(hostname)
|
||||
IP_ADDRESS=$(hostname -I | cut -d " " -f 1)
|
||||
|
||||
DISTRO_VERSION=$(cat /etc/os-release | grep -w "VERSION_ID" | cut -d "=" -f 2)
|
||||
DISTRO_VERSION=${DISTRO_VERSION//\"/} # Remove quotes from version string
|
||||
|
||||
DISTRO_NAME=$(cat /etc/os-release | grep -w "NAME" | cut -d "=" -f 2)
|
||||
DISTRO_NAME=${DISTRO_NAME//\"/} # Remove quotes from name string
|
||||
|
||||
LOG_JSON='{"os": "'$DISTRO_NAME-$DISTRO_VERSION'", "hostname": "'$HOSTNAME'", "ip": "'$IP_ADDRESS'"}'
|
||||
|
||||
curl -s https://phyrepanel.com/api/phyre-installation-log -X POST -H "Content-Type: application/json" -d $LOG_JSON
|
||||
|
|
@ -58,6 +58,18 @@ PHYRE_PHP=/usr/local/phyre/php/bin/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"}'
|
||||
HOSTNAME=$(hostname)
|
||||
IP_ADDRESS=$(hostname -I | cut -d " " -f 1)
|
||||
|
||||
DISTRO_VERSION=$(cat /etc/os-release | grep -w "VERSION_ID" | cut -d "=" -f 2)
|
||||
DISTRO_VERSION=${DISTRO_VERSION//\"/} # Remove quotes from version string
|
||||
|
||||
DISTRO_NAME=$(cat /etc/os-release | grep -w "NAME" | cut -d "=" -f 2)
|
||||
DISTRO_NAME=${DISTRO_NAME//\"/} # Remove quotes from name string
|
||||
|
||||
LOG_JSON='{"os": "'$DISTRO_NAME-$DISTRO_VERSION'", "hostname": "'$HOSTNAME'", "ip": "'$IP_ADDRESS'"}'
|
||||
|
||||
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
|
||||
|
|
13
installers/ubuntu-24.04-waiting-for-git/install-partial/install_log.sh
Executable file
13
installers/ubuntu-24.04-waiting-for-git/install-partial/install_log.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
HOSTNAME=$(hostname)
|
||||
IP_ADDRESS=$(hostname -I | cut -d " " -f 1)
|
||||
|
||||
DISTRO_VERSION=$(cat /etc/os-release | grep -w "VERSION_ID" | cut -d "=" -f 2)
|
||||
DISTRO_VERSION=${DISTRO_VERSION//\"/} # Remove quotes from version string
|
||||
|
||||
DISTRO_NAME=$(cat /etc/os-release | grep -w "NAME" | cut -d "=" -f 2)
|
||||
DISTRO_NAME=${DISTRO_NAME//\"/} # Remove quotes from name string
|
||||
|
||||
LOG_JSON='{"os": "'$DISTRO_NAME-$DISTRO_VERSION'", "hostname": "'$HOSTNAME'", "ip": "'$IP_ADDRESS'"}'
|
||||
|
||||
curl -s https://phyrepanel.com/api/phyre-installation-log -X POST -H "Content-Type: application/json" -d $LOG_JSON
|
||||
|
Loading…
Reference in a new issue