diff options
-rw-r--r-- | changelog.md | 4 | ||||
-rw-r--r-- | etc/ncp-config.d/nc-datadir.sh | 2 | ||||
-rw-r--r-- | etc/ncp-config.d/nc-init.sh | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/changelog.md b/changelog.md index ffa8f26d..d0a1122f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ -[v0.67.6](https://github.com/nextcloud/nextcloudpi/commit/f9f62eb) (2018-12-01) build: start sharing torrents automatically +[v0.67.7](https://github.com/nextcloud/nextcloudpi/commit/99fb4a5) (2018-12-16) fix tempdir config + +[v0.67.6 ](https://github.com/nextcloud/nextcloudpi/commit/ca7bc90) (2018-12-06) nc-init: fix missing variable [v0.67.5 ](https://github.com/nextcloud/nextcloudpi/commit/d19a7f7) (2018-12-01) nc-datadir: also use tempdirectory setting 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 |