Added fixes for rpm based system usage
This commit is contained in:
@@ -38,9 +38,10 @@ check_hestia_demo_mode
|
||||
|
||||
if [ "$status" = "enable" ]; then
|
||||
if [ ! -f "$HESTIA/web/api/index.php" ]; then
|
||||
wget -q https://raw.githubusercontent.com/hestiacp/hestiacp/$RELEASE_BRANCH/web/api/index.php -O $HESTIA/web/api/index.php
|
||||
# Avoid useng RELEASE_BRANCH
|
||||
wget -q https://dev.putey.net/bayrepo/hestiacp/raw/branch/master/web/api/index.php -O $HESTIA/web/api/index.php
|
||||
if [ ! -s "$HESTIA/web/api/index.php" ]; then
|
||||
wget -q https://raw.githubusercontent.com/hestiacp/hestiacp/release/web/api/index.php -O $HESTIA/web/api/index.php
|
||||
wget -q https://dev.putey.net/bayrepo/hestiacp/raw/branch/master/web/api/index.php -O $HESTIA/web/api/index.php
|
||||
if [ ! -s "$HESTIA/web/api/index.php" ]; then
|
||||
# Throw error message to user
|
||||
echo "ERROR: API installation failed."
|
||||
|
||||
Reference in New Issue
Block a user