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

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-12-17 04:30:35 +0300
committernachoparker <nacho@ownyourbits.com>2018-12-17 04:31:06 +0300
commitd75ecc2c2d1e0de61a8c98f70c8985dbcdf7af16 (patch)
tree2a0e2a3001b0ae813b8c987f66aa2392e97bbffe
parent49f5a357776e0580e27419fd98d97f2e1c479fe3 (diff)
fix tempdir configv0.67.7
-rw-r--r--changelog.md4
-rw-r--r--etc/ncp-config.d/nc-datadir.sh2
-rw-r--r--etc/ncp-config.d/nc-init.sh2
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