diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-05-25 22:13:02 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-05-26 18:58:14 +0300 |
commit | a78d5ddf86b7963a316090fb867f10fed303782e (patch) | |
tree | 046ffc8d99c98d7696b24cd189c0a988878e5ce4 /etc/nextcloudpi-config.d/nc-datadir.sh | |
parent | 3dbfd2b563e2f68e92a8b0f3b9ec7b3b9c925cfa (diff) |
fix big uploads. upload tmp dir
Diffstat (limited to 'etc/nextcloudpi-config.d/nc-datadir.sh')
-rw-r--r-- | etc/nextcloudpi-config.d/nc-datadir.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/nextcloudpi-config.d/nc-datadir.sh b/etc/nextcloudpi-config.d/nc-datadir.sh index 94bbdf1c..bf2883a3 100644 --- a/etc/nextcloudpi-config.d/nc-datadir.sh +++ b/etc/nextcloudpi-config.d/nc-datadir.sh @@ -55,6 +55,12 @@ configure() cp -ra "$SRCDIR" "$DATADIR_" || return 1 + # tmp upload dir + mkdir -p "$DATADIR_/tmp" + chown www-data:www-data "$DATADIR_/tmp" + sed -i "s|^;\?upload_tmp_dir =.*$|upload_tmp_dir = $DATADIR_/tmp|" /etc/php/7.0/fpm/php.ini + + # datadir cd /var/www/nextcloud sudo -u www-data php occ config:system:set datadirectory --value=$DATADIR_ service apache2 start |