mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
revert adjustment of tempdirectory
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
fce23622e9
commit
dfe6bd5ff0
1 changed files with 7 additions and 5 deletions
|
|
@ -444,12 +444,14 @@ if [ -z "$OBJECTSTORE_S3_BUCKET" ] && [ -z "$OBJECTSTORE_SWIFT_URL" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Configure tempdirectory
|
# Delete formerly configured tempdirectory as the default is usually faster (if the datadir is on a HDD or network FS)
|
||||||
mkdir -p "$NEXTCLOUD_DATA_DIR/tmp/"
|
if [ "$(php /var/www/html/occ config:system:get tempdirectory)" = "$NEXTCLOUD_DATA_DIR/tmp/" ]; then
|
||||||
if ! grep -q upload_tmp_dir /usr/local/etc/php/conf.d/nextcloud.ini; then
|
php /var/www/html/occ config:system:delete tempdirectory
|
||||||
echo "upload_tmp_dir = $NEXTCLOUD_DATA_DIR/tmp/" >> /usr/local/etc/php/conf.d/nextcloud.ini
|
if [ -d "$NEXTCLOUD_DATA_DIR/tmp/" ]; then
|
||||||
|
rm -r "$NEXTCLOUD_DATA_DIR/tmp/"
|
||||||
fi
|
fi
|
||||||
php /var/www/html/occ config:system:set tempdirectory --value="$NEXTCLOUD_DATA_DIR/tmp/"
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Perform fingerprint update if instance was restored
|
# Perform fingerprint update if instance was restored
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue