Explorar o código

fix ssl backup restore

Serghey Rodin %!s(int64=8) %!d(string=hai) anos
pai
achega
8a217352fe
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      bin/v-restore-user

+ 3 - 1
bin/v-restore-user

@@ -373,7 +373,9 @@ if [ "$web" != 'no' ] && [ ! -z "$WEB_SYSTEM" ]; then
 
             # Copying ssl certificates
             if [ "$SSL" = 'yes' ]; then
-                for crt in $(ls $tmpdir/web/$domain/conf |grep ssl); do
+                certificates=$(ls $tmpdir/web/$domain/conf| grep ssl)
+                certificates=$(echo "$certificates" |grep $domain)
+                for crt in $certificates; do
                     crt=$(echo $crt|sed -e "s/ssl.//")
                     cp -f $tmpdir/web/$domain/conf/ssl.$crt $USER_DATA/ssl/$crt
                 done