getAllVservers(): ignore backup vservers
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 30 Dec 2003 16:21:16 +0000 (16:21 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 30 Dec 2003 16:21:16 +0000 (16:21 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@515 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/functions

index b9212d8..1b94ce4 100644 (file)
@@ -246,6 +246,9 @@ function getAllVservers
        test   -d "$i"          || continue
        test ! -e "$i"/disabled || continue
        test   -d "$i"/vdir     || continue
+       case "$i" in
+           *.~*~) continue;;
+       esac
 
        _tmp=( "${_tmp[@]}" "${i##$CONFDIR/}")
     done