diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-12-17 04:30:35 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-12-17 04:31:06 +0300 |
commit | d75ecc2c2d1e0de61a8c98f70c8985dbcdf7af16 (patch) | |
tree | 2a0e2a3001b0ae813b8c987f66aa2392e97bbffe /etc | |
parent | 49f5a357776e0580e27419fd98d97f2e1c479fe3 (diff) |
fix tempdir configv0.67.7
Diffstat (limited to 'etc')
-rw-r--r-- | etc/ncp-config.d/nc-datadir.sh | 2 | ||||
-rw-r--r-- | etc/ncp-config.d/nc-init.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/ncp-config.d/nc-datadir.sh b/etc/ncp-config.d/nc-datadir.sh index 62be26ee..a79b45d4 100644 --- a/etc/ncp-config.d/nc-datadir.sh +++ b/etc/ncp-config.d/nc-datadir.sh @@ -95,7 +95,7 @@ configure() # tmp upload dir mkdir -p "$DATADIR_/tmp" chown www-data:www-data "$DATADIR_/tmp" - sudo -u www-data php occ config:system:set tempdirectory "$DATADIR_/tmp" + sudo -u www-data php occ config:system:set tempdirectory --value "$DATADIR_/tmp" sed -i "s|^;\?upload_tmp_dir =.*$|upload_tmp_dir = $DATADIR_/tmp|" /etc/php/${PHPVER}/cli/php.ini sed -i "s|^;\?upload_tmp_dir =.*$|upload_tmp_dir = $DATADIR_/tmp|" /etc/php/${PHPVER}/fpm/php.ini sed -i "s|^;\?sys_temp_dir =.*$|sys_temp_dir = $DATADIR_/tmp|" /etc/php/${PHPVER}/fpm/php.ini diff --git a/etc/ncp-config.d/nc-init.sh b/etc/ncp-config.d/nc-init.sh index 24631a61..961b1c94 100644 --- a/etc/ncp-config.d/nc-init.sh +++ b/etc/ncp-config.d/nc-init.sh @@ -107,7 +107,7 @@ EOF local UPLOADTMPDIR=/var/www/nextcloud/data/tmp mkdir -p "$UPLOADTMPDIR" chown www-data:www-data "$UPLOADTMPDIR" - sudo -u www-data php occ config:system:set tempdirectory "$UPLOADTMPDIR" + sudo -u www-data php occ config:system:set tempdirectory --value "$UPLOADTMPDIR" sed -i "s|^;\?upload_tmp_dir =.*$|upload_tmp_dir = $UPLOADTMPDIR|" /etc/php/${PHPVER}/cli/php.ini sed -i "s|^;\?upload_tmp_dir =.*$|upload_tmp_dir = $UPLOADTMPDIR|" /etc/php/${PHPVER}/fpm/php.ini sed -i "s|^;\?sys_temp_dir =.*$|sys_temp_dir = $UPLOADTMPDIR|" /etc/php/${PHPVER}/fpm/php.ini |