Skip to content

Commit dde0dc6

Browse files
committed
[Filemanager] Enable zip and gmp libs when building Hestia php
GMP lib improves sftp performance and ZIP enables un/compression features in the filemanager
1 parent c17300d commit dde0dc6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/hst_autocompile.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ mkdir -p $DEB_DIR
9898
mkdir -p $ARCHIVE_DIR
9999

100100
# Set package dependencies for compiling
101-
SOFTWARE='build-essential libxml2-dev libz-dev libcurl4-gnutls-dev unzip openssl libssl-dev pkg-config libsqlite3-dev libonig-dev'
101+
SOFTWARE='build-essential libxml2-dev libz-dev libzip-dev libgmp-dev libcurl4-gnutls-dev unzip openssl libssl-dev pkg-config libsqlite3-dev libonig-dev'
102102

103103
# Define a timestamp function
104104
timestamp() {
@@ -340,6 +340,8 @@ if [ "$PHP_B" = true ] ; then
340340
--with-libdir=lib/x86_64-linux-gnu \
341341
--with-mysqli \
342342
--with-curl \
343+
--with-zip \
344+
--with-gmp \
343345
--enable-mbstring
344346

345347
# Create the files and install them
@@ -397,7 +399,7 @@ if [ "$PHP_B" = true ] ; then
397399
# clear up the source folder
398400
rm -r hestia-php_$PHP_V
399401
rm -rf usr/
400-
if [ ! -z "$use_src_folder" ] && [ -d $$BUILD_DIR/hestiacp-$branch ]; then
402+
if [ ! -z "$use_src_folder" ] && [ -d $BUILD_DIR/hestiacp-$branch ]; then
401403
rm -r $BUILD_DIR/hestiacp-$branch
402404
fi
403405
fi
@@ -409,7 +411,7 @@ fi
409411
#
410412
#################################################################################
411413

412-
if [ "$HESTIA_B" = true ] ; then
414+
if [ "$HESTIA_B" = true ]; then
413415
echo "Building Hestia Control Panel package..."
414416
# Change to build directory
415417
cd $BUILD_DIR

0 commit comments

Comments
 (0)