File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,11 @@ if [ ! -z "$2" ]; then
133133else
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
136141fi
137142
138143if [ -z " $branch " ]; then
@@ -148,7 +153,13 @@ echo "[*] Checking for missing dependencies and installing required libraries...
148153apt-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
154165NUM_CPUS=$( grep " ^cpu cores" /proc/cpuinfo | uniq | awk ' {print $4}' )
You can’t perform that action at this time.
0 commit comments