Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@hanssonit.se>2020-07-19 22:33:53 +0300
committerGitHub <noreply@github.com>2020-07-19 22:33:53 +0300
commitfd27a6beb5395ba53e8e7dfb7f4e1ea399f718fc (patch)
tree644669b85fe122b630a56d2abb2c055ae0118a08 /nextcloud_install_production.sh
parenta1f02d13d693b1bcdf041e6fdd3dddd156182f8b (diff)
add PHP_MODS_DIR (#1326)
Diffstat (limited to 'nextcloud_install_production.sh')
-rw-r--r--nextcloud_install_production.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh
index a43920d6..8a83c37a 100644
--- a/nextcloud_install_production.sh
+++ b/nextcloud_install_production.sh
@@ -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