Parcourir la source

Dont match subdomains while restoring domain

dpeca il y a 6 ans
Parent
commit
8d9e349b23
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      bin/v-restore-user

+ 1 - 1
bin/v-restore-user

@@ -289,7 +289,7 @@ if [ "$web" != 'no' ] && [ ! -z "$WEB_SYSTEM" ]; then
     if [ -z "$web" ] || [ "$web" = '*' ]; then
         domains="$backup_domains"
     else
-        echo "$web" |tr ',' '\n' > $tmpdir/selected.txt
+        echo "$web" | tr ',' '\n' | sed -e "s/^/^/" > $tmpdir/selected.txt
         domains=$(echo "$backup_domains" |egrep -f $tmpdir/selected.txt)
     fi