Update install.sh
This commit is contained in:
parent
49606d3454
commit
f809510f3b
1 changed files with 7 additions and 5 deletions
|
@ -37,14 +37,16 @@ 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
|
||||
|
||||
DISTRO_INSTALLER_FILE="./${DISTRO_NAME}/${DISTRO_VERSION}/install.sh"
|
||||
if [[ ! -f $DISTRO_INSTALLER_FILE ]]; then
|
||||
INSTALLER_URL="https://raw.githubusercontent.com/CloudVisionApps/AlphaXPanel/main/installers/${DISTRO_NAME}/${DISTRO_VERSION}/install.sh"
|
||||
|
||||
INSTALLER_CONTENT=$(wget ${INSTALLER_URL} 2>&1)
|
||||
if [[ "$INSTALLER_CONTENT" =~ 404\ Not\ Found ]]; then
|
||||
echo "AlphaXPanel not supporting this version of distribution"
|
||||
echo "Distro: ${DISTRO_NAME} Version: ${DISTRO_VERSION}"
|
||||
echo "Exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
wget
|
||||
|
||||
bash $DISTRO_INSTALLER_FILE
|
||||
wget $INSTALLER_URL -O ./panel-installer.sh
|
||||
chmod +x ./panel-installer.sh
|
||||
bash ./panel-installer.sh
|
||||
|
|
Loading…
Add table
Reference in a new issue