From 8a217352fe541ca22894262f4a4c84c50b6e22f2 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Fri, 19 Jan 2018 18:10:54 +0200 Subject: [PATCH] fix ssl backup restore --- bin/v-restore-user | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/v-restore-user b/bin/v-restore-user index b39412085..79e1e28c1 100755 --- a/bin/v-restore-user +++ b/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