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:
Diffstat (limited to 'etc/ncp-config.d/nc-init.sh')
-rw-r--r--etc/ncp-config.d/nc-init.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/ncp-config.d/nc-init.sh b/etc/ncp-config.d/nc-init.sh
index 8d3528ec..9996d9a1 100644
--- a/etc/ncp-config.d/nc-init.sh
+++ b/etc/ncp-config.d/nc-init.sh
@@ -101,6 +101,16 @@ EOF
);
EOF
+ # tmp upload dir
+ 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"
+ 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
+
+
# 4 Byte UTF8 support
sudo -u www-data php occ config:system:set mysql.utf8mb4 --type boolean --value="true"