diff options
author | nachoparker <nacho@ownyourbits.com> | 2020-09-08 03:34:52 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2020-09-08 03:34:52 +0300 |
commit | 9d65011e84f46037d99f2ceea765b4be3d1031ae (patch) | |
tree | 9c76a0e7c009c7bbc044a5dcef002ce8f1f29a9c /bin | |
parent | 21a791db986a864d6e34d9471fbceac466c36f03 (diff) |
nc-restore: also set tempdirectoryv1.29.9
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ncp/BACKUPS/nc-restore.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ncp/BACKUPS/nc-restore.sh b/bin/ncp/BACKUPS/nc-restore.sh index 278a6ade..af2c77c7 100644 --- a/bin/ncp/BACKUPS/nc-restore.sh +++ b/bin/ncp/BACKUPS/nc-restore.sh @@ -109,7 +109,7 @@ if [[ $( ls "$TMPDIR" | wc -l ) -eq $NUMFILES ]]; then } echo "restore datadir to $DATADIR..." - + mkdir -p "$DATADIR" [[ "$( stat -fc%T "$DATADIR" )" == "btrfs" ]] && which btrfs &>/dev/null && { rmdir "$DATADIR" || exit 1 @@ -141,6 +141,7 @@ sed -i "s|^opcache.file_cache=.*|opcache.file_cache=$DATADIR/.opcache|" /etc/php # tmp upload dir mkdir -p "$DATADIR/tmp" chown www-data:www-data "$DATADIR/tmp" +sudo -u www-data php occ config:system:set tempdirectory --value "$DATADIR/tmp" sed -i "s|^;\?upload_tmp_dir =.*$|upload_tmp_dir = $DATADIR/tmp|" /etc/php/${PHPVER}/cli/php.ini sed -i "s|^;\?upload_tmp_dir =.*$|upload_tmp_dir = $DATADIR/tmp|" /etc/php/${PHPVER}/fpm/php.ini sed -i "s|^;\?sys_temp_dir =.*$|sys_temp_dir = $DATADIR/tmp|" /etc/php/${PHPVER}/fpm/php.ini |