mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
add PHP_MODS_DIR (#1326)
This commit is contained in:
parent
a1f02d13d6
commit
fd27a6beb5
1
lib.sh
1
lib.sh
@ -129,6 +129,7 @@ PHPVER=7.4
|
||||
PHP_FPM_DIR=/etc/php/$PHPVER/fpm
|
||||
PHP_INI=$PHP_FPM_DIR/php.ini
|
||||
PHP_POOL_DIR=$PHP_FPM_DIR/pool.d
|
||||
PHP_MODS_DIR=/etc/php/"$PHPVER"/mods-available
|
||||
# Adminer
|
||||
ADMINERDIR=/usr/share/adminer
|
||||
ADMINER_CONF=/etc/apache2/conf-available/adminer.conf
|
||||
|
||||
@ -479,14 +479,14 @@ run_script STATIC redis-server-ubuntu
|
||||
# php"$PHPVER"-smbclient does not yet work in PHP 7.4
|
||||
install_if_not libsmbclient-dev
|
||||
yes no | pecl install smbclient
|
||||
if [ ! -f /etc/php/"$PHPVER"/mods-available/smbclient.ini ]
|
||||
if [ ! -f $PHP_MODS_DIR/smbclient.ini ]
|
||||
then
|
||||
touch /etc/php/"$PHPVER"/mods-available/smbclient.ini
|
||||
touch $PHP_MODS_DIR/smbclient.ini
|
||||
fi
|
||||
if ! grep -qFx extension=smbclient.so /etc/php/"$PHPVER"/mods-available/smbclient.ini
|
||||
if ! grep -qFx extension=smbclient.so $PHP_MODS_DIR/smbclient.ini
|
||||
then
|
||||
echo "# PECL smbclient" > /etc/php/"$PHPVER"/mods-available/smbclient.ini
|
||||
echo "extension=smbclient.so" >> /etc/php/"$PHPVER"/mods-available/smbclient.ini
|
||||
echo "# PECL smbclient" > $PHP_MODS_DIR/smbclient.ini
|
||||
echo "extension=smbclient.so" >> $PHP_MODS_DIR/smbclient.ini
|
||||
fi
|
||||
|
||||
# Enable igbinary for PHP
|
||||
|
||||
Loading…
Reference in New Issue
Block a user