Move from putey.net to brepo.ru
This commit is contained in:
@@ -39,9 +39,9 @@ check_hestia_demo_mode
|
||||
if [ "$status" = "enable" ]; then
|
||||
if [ ! -f "$HESTIA/web/api/index.php" ]; then
|
||||
# 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
|
||||
wget -q https://dev.brepo.ru/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://dev.putey.net/bayrepo/hestiacp/raw/branch/master/web/api/index.php -O $HESTIA/web/api/index.php
|
||||
wget -q https://dev.brepo.ru/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."
|
||||
|
||||
@@ -49,7 +49,7 @@ if [ -z "$branch" ]; then
|
||||
else
|
||||
# Check that requested branch exists
|
||||
echo "Checking for existence of $branch branch..."
|
||||
branch_check=$(curl -s --head -w %{http_code} "https://dev.putey.net/bayrepo/hestiacp/raw/branch/master/src/rpm/hestia/control" -o /dev/null)
|
||||
branch_check=$(curl -s --head -w %{http_code} "https://dev.brepo.ru/bayrepo/hestiacp/raw/branch/master/src/rpm/hestia/control" -o /dev/null)
|
||||
if [ "$branch_check" -ne "200" ]; then
|
||||
echo "Error: invalid branch name specified."
|
||||
exit 1
|
||||
|
||||
@@ -30,31 +30,31 @@ source_conf "$HESTIA/conf/hestia.conf"
|
||||
if [ -f "$HESTIA/web/images/custom/logo.svg" ]; then
|
||||
cp -f $HESTIA/web/images/custom/logo.svg $HESTIA/web/images/logo.svg
|
||||
elif [ ! -f "$HESTIA/web/images/custom/logo.svg" ] && [ "$download" = "yes" ]; then
|
||||
download_file https://dev.putey.net/bayrepo/hestiacp/raw/branch/master/web/images/logo.svg $HESTIA/web/images/logo.svg
|
||||
download_file https://dev.brepo.ru/bayrepo/hestiacp/raw/branch/master/web/images/logo.svg $HESTIA/web/images/logo.svg
|
||||
fi
|
||||
|
||||
if [ -f "$HESTIA/web/images/custom/logo.png" ]; then
|
||||
cp -f $HESTIA/web/images/custom/logo.png $HESTIA/web/images/logo.png
|
||||
elif [ ! -f "$HESTIA/web/images/custom/logo.png" ] && [ "$download" = "yes" ]; then
|
||||
download_file https://dev.putey.net/bayrepo/hestiacp/raw/branch/master/web/images/logo.png $HESTIA/web/images/logo.png
|
||||
download_file https://dev.brepo.ru/bayrepo/hestiacp/raw/branch/master/web/images/logo.png $HESTIA/web/images/logo.png
|
||||
fi
|
||||
|
||||
if [ -f "$HESTIA/web/images/custom/logo-header.svg" ]; then
|
||||
cp -f $HESTIA/web/images/custom/logo-header.svg $HESTIA/web/images/logo-header.svg
|
||||
elif [ ! -f "$HESTIA/web/images/custom/logo-header.svg" ] && [ "$download" = "yes" ]; then
|
||||
download_file https://dev.putey.net/bayrepo/hestiacp/raw/branch/master/web/images/logo-header.svg $HESTIA/web/images/logo-header.svg
|
||||
download_file https://dev.brepo.ru/bayrepo/hestiacp/raw/branch/master/web/images/logo-header.svg $HESTIA/web/images/logo-header.svg
|
||||
fi
|
||||
|
||||
if [ -f "$HESTIA/web/images/custom/favicon.png" ]; then
|
||||
cp -f $HESTIA/web/images/custom/favicon.png $HESTIA/web/images/favicon.png
|
||||
elif [ ! -f "$HESTIA/web/images/custom/favicon.png" ] && [ "$download" = "yes" ]; then
|
||||
download_file https://dev.putey.net/bayrepo/hestiacp/raw/branch/master/web/images/favicon.png $HESTIA/web/images/favicon.png
|
||||
download_file https://dev.brepo.ru/bayrepo/hestiacp/raw/branch/master/web/images/favicon.png $HESTIA/web/images/favicon.png
|
||||
fi
|
||||
|
||||
if [ -f "$HESTIA/web/images/custom/favicon.ico" ]; then
|
||||
cp -f $HESTIA/web/images/custom/favicon.ico $HESTIA/web/favicon.ico
|
||||
elif [ ! -f "$HESTIA/web/images/custom/favicon.ico" ] && [ "$download" = "yes" ]; then
|
||||
download_file https://dev.putey.net/bayrepo/hestiacp/raw/branch/master/web/favicon.ico $HESTIA/web/favicon.ico
|
||||
download_file https://dev.brepo.ru/bayrepo/hestiacp/raw/branch/master/web/favicon.ico $HESTIA/web/favicon.ico
|
||||
fi
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
||||
Reference in New Issue
Block a user