File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ if [[ $( ls "$TMPDIR" | wc -l ) -eq $NUMFILES ]]; then
109109 }
110110
111111 echo "restore datadir to $DATADIR..."
112-
112+
113113 mkdir -p "$DATADIR"
114114 [[ "$( stat -fc%T "$DATADIR" )" == "btrfs" ]] && which btrfs &>/dev/null && {
115115 rmdir "$DATADIR" || exit 1
@@ -141,6 +141,7 @@ sed -i "s|^opcache.file_cache=.*|opcache.file_cache=$DATADIR/.opcache|" /etc/php
141141# tmp upload dir
142142mkdir -p "$DATADIR/tmp"
143143chown www-data:www-data "$DATADIR/tmp"
144+ sudo -u www-data php occ config:system:set tempdirectory --value "$DATADIR/tmp"
144145sed -i "s|^;\?upload_tmp_dir =.*$|upload_tmp_dir = $DATADIR/tmp|" /etc/php/${PHPVER}/cli/php.ini
145146sed -i "s|^;\?upload_tmp_dir =.*$|upload_tmp_dir = $DATADIR/tmp|" /etc/php/${PHPVER}/fpm/php.ini
146147sed -i "s|^;\?sys_temp_dir =.*$|sys_temp_dir = $DATADIR/tmp|" /etc/php/${PHPVER}/fpm/php.ini
You can’t perform that action at this time.
0 commit comments