Skip to content
Snippets Groups Projects
Commit 2f209f80 authored by intrigeri's avatar intrigeri
Browse files

lib/vserver.in: enhanced the VROOTDIR discovery

parent 38642e9c
Branches
Tags
No related merge requests found
......@@ -30,7 +30,7 @@ init_vservers() {
getconf vservers no
getconf VSERVERINFO /usr/sbin/vserver-info
getconf VSERVER /usr/sbin/vserver
getconf VROOTDIR `if [ -f "$VSERVERINFO" ]; then $VSERVERINFO info SYSINFO |grep vserver-Rootdir | awk '{print $2}'; fi`
getconf VROOTDIR `if [ -x "$VSERVERINFO" ]; then $VSERVERINFO info SYSINFO | grep '^ *vserver-Rootdir' | awk '{print $2}'; fi`
# init this library's global variables
vservers_are_available=no
found_vservers=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment