Skip to content

Commit 33c812b

Browse files
author
Kristan Kenney
committed
Merge branch 'main' into feature/user-roles
2 parents ae87b8c + 27dcc08 commit 33c812b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

bin/v-update-sys-hestia-git

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ if [ ! -z "$2" ]; then
133133
else
134134
source /usr/local/hestia/conf/hestia.conf
135135
branch=$RELEASE_BRANCH
136+
branch_check=$(curl -s --head -w %{http_code} https://raw.githubusercontent.com/$fork/hestiacp/$branch/src/deb/hestia/control -o /dev/null)
137+
if [ $branch_check -ne "200" ]; then
138+
echo "ERROR: invalid branch name specified."
139+
exit 1
140+
fi
136141
fi
137142

138143
if [ -z "$branch" ]; then
@@ -148,7 +153,13 @@ echo "[*] Checking for missing dependencies and installing required libraries...
148153
apt-get -qq install -y $SOFTWARE > /dev/null 2>&1
149154

150155
# Fix for Debian PHP Envroiment
151-
ln -s /usr/include/x86_64-linux-gnu/curl /usr/local/include/curl > /dev/null 2>&1
156+
if [ ! -e /usr/local/include/curl ]; then
157+
if [ $BUILD_ARCH == "amd64" ]; then
158+
ln -s /usr/include/x86_64-linux-gnu/curl /usr/local/include/curl
159+
else
160+
echo "No x86_64 working"
161+
fi
162+
fi
152163

153164
# Get system cpu cores
154165
NUM_CPUS=$(grep "^cpu cores" /proc/cpuinfo | uniq | awk '{print $4}')

0 commit comments

Comments
 (0)