Просмотр исходного кода

Fixed excluding folders named "logs" from restore backup
Thanks to @davidgolsen for the solution and @kpapad904 for pointing us to it.

Raphael Schneeberger 6 лет назад
Родитель
Сommit
2003a749f4
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 0
      CHANGELOG.md
  2. 1 2
      bin/v-restore-user

+ 1 - 0
CHANGELOG.md

@@ -65,6 +65,7 @@ All notable changes to this project will be documented in this file.
 - Fixed IfModule mpm_itk.c for apache2 templates.
 - Added mpm_itk for Deb10 single php installation only.
 - Hardening nginx configuration, drop TLSv1.1 support.
+- Fixed excluding folders named "logs" from restore backup, thanks to @davidgolsen.
 
 ## [1.0.6] - 2019-09-24 - Hotfix
 ### Bugfixes

+ 1 - 2
bin/v-restore-user

@@ -408,8 +408,7 @@ if [ "$web" != 'no' ] && [ ! -z "$WEB_SYSTEM" ]; then
         fi
         chmod u+w "$HOMEDIR/$user/web/$domain"
         user_exec tar -xzpf $tmpdir/web/$domain/domain_data.tar.gz \
-            -C "$HOMEDIR/$user/web/$domain/" \
-            --exclude='logs/*'
+            -C "$HOMEDIR/$user/web/$domain/" --exclude='./logs/*'
         if [ "$?" -ne 0 ]; then
             rm -rf $tmpdir
             error="Can't unpack $domain data tarball"