Skip to content

Commit 8a21735

Browse files
author
Serghey Rodin
committed
fix ssl backup restore
1 parent 9a9dabb commit 8a21735

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/v-restore-user

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,9 @@ if [ "$web" != 'no' ] && [ ! -z "$WEB_SYSTEM" ]; then
373373

374374
# Copying ssl certificates
375375
if [ "$SSL" = 'yes' ]; then
376-
for crt in $(ls $tmpdir/web/$domain/conf |grep ssl); do
376+
certificates=$(ls $tmpdir/web/$domain/conf| grep ssl)
377+
certificates=$(echo "$certificates" |grep $domain)
378+
for crt in $certificates; do
377379
crt=$(echo $crt|sed -e "s/ssl.//")
378380
cp -f $tmpdir/web/$domain/conf/ssl.$crt $USER_DATA/ssl/$crt
379381
done

0 commit comments

Comments
 (0)