mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-12-29 10:10:55 +08:00
Merge pull request #1042 from nextcloud/enh/noid/temp_dir
Configure tempdirectory automatically
This commit is contained in:
commit
37d40f0992
1 changed files with 9 additions and 0 deletions
|
@ -278,6 +278,15 @@ if [ -z "$(find "/mnt/ncdata/" -maxdepth 1 -mindepth 1 -type d -name "appdata_*"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Configure tempdirectory
|
||||||
|
if [ -z "$OBJECTSTORE_S3_BUCKET" ] && [ -z "$OBJECTSTORE_SWIFT_URL" ]; then
|
||||||
|
mkdir -p "/mnt/ncdata/tmp/"
|
||||||
|
if ! grep -q upload_tmp_dir /usr/local/etc/php/conf.d/nextcloud.ini; then
|
||||||
|
echo "upload_tmp_dir = /mnt/ncdata/tmp/" >> /usr/local/etc/php/conf.d/nextcloud.ini
|
||||||
|
fi
|
||||||
|
php /var/www/html/occ config:system:set tempdirectory --value="/mnt/ncdata/tmp/"
|
||||||
|
fi
|
||||||
|
|
||||||
# Perform fingerprint update if instance was restored
|
# Perform fingerprint update if instance was restored
|
||||||
if [ -f "/mnt/ncdata/fingerprint.update" ]; then
|
if [ -f "/mnt/ncdata/fingerprint.update" ]; then
|
||||||
php /var/www/html/occ maintenance:data-fingerprint
|
php /var/www/html/occ maintenance:data-fingerprint
|
||||||
|
|
Loading…
Reference in a new issue