xenserver: Fix sense of -d test in /etc/init.d/openvswitch.
authorBen Pfaff <blp@nicira.com>
Mon, 26 Apr 2010 20:12:35 +0000 (13:12 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 26 Apr 2010 20:12:35 +0000 (13:12 -0700)
It doesn't make sense to create a directory if it already exists.

xenserver/etc_init.d_openvswitch

index 926ce52..51b1d50 100755 (executable)
@@ -249,7 +249,7 @@ function start_brcompatd {
     local syslog_opt="-vANY:SYSLOG:${BRCOMPATD_SYSLOG_LOGLEVEL}"
     local logfile_file_opt=""
     local logfile_level_opt=""
-    if [ -d "$BRCOMPATD_RUN_DIR" ]; then
+    if [ -d "$BRCOMPATD_RUN_DIR" ]; then
         install -d -m 755 -o root -g root "$BRCOMPATD_RUN_DIR"
     fi
     cd "$BRCOMPATD_RUN_DIR"