execute the prepre script in the configuration directory (*not* the
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sun, 3 Jul 2005 13:19:45 +0000 (13:19 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sun, 3 Jul 2005 13:19:45 +0000 (13:19 +0000)
vdir directory); this should not cause legacy problems as formerly the
directory was not changed overall

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2120 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver.start

index 3dc6795..f3a8ff2 100644 (file)
@@ -88,7 +88,11 @@ sanityCheck      "$VSERVER_DIR"
 
 mountRootFS      "$VSERVER_DIR"
 generateOptions  "$VSERVER_DIR"
+
+pushd "$VSERVER_DIR" >/dev/null
 execScriptlets   "$VSERVER_DIR" "$VSERVER_NAME" prepre-start
+popd
+
 enableInterfaces "$VSERVER_DIR" && have_interfaces=1
 
 mountVserver "$VSERVER_DIR"     && is_mounted=1