Skip to content

Commit 336decf

Browse files
author
Kristan Kenney
authored
Fix check for curl symlink on Debian during build process (hestiacp#2275)
1 parent 6f7b6af commit 336decf

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

bin/v-update-sys-hestia-git

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,9 @@ echo "[*] Checking for missing dependencies and installing required libraries...
158158
apt-get -qq install -y $SOFTWARE > /dev/null 2>&1
159159

160160
# Fix for Debian PHP Envroiment
161-
if [ ! -e /usr/local/include/curl ]; then
162-
if [ $BUILD_ARCH == "amd64" ]; then
161+
if [ $BUILD_ARCH == "amd64" ]; then
162+
if [ ! -L /usr/local/include/curl ]; then
163163
ln -s /usr/include/x86_64-linux-gnu/curl /usr/local/include/curl
164-
else
165-
echo "No x86_64 working"
166164
fi
167165
fi
168166

src/hst_autocompile.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,9 @@ if [ "$dontinstalldeps" != 'true' ]; then
257257
apt-get -qq install -y $SOFTWARE > /dev/null 2>&1
258258

259259
# Fix for Debian PHP Envroiment
260-
if [ ! -e /usr/local/include/curl ]; then
261-
if [ $BUILD_ARCH == "amd64" ]; then
260+
if [ $BUILD_ARCH == "amd64" ]; then
261+
if [ ! -L /usr/local/include/curl ]; then
262262
ln -s /usr/include/x86_64-linux-gnu/curl /usr/local/include/curl
263-
else
264-
echo "No x86_64 working"
265263
fi
266264
fi
267265
fi

0 commit comments

Comments
 (0)