From: Ben Pfaff Date: Mon, 26 Apr 2010 20:12:35 +0000 (-0700) Subject: xenserver: Fix sense of -d test in /etc/init.d/openvswitch. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d799ae067f9d442bf15f3ee757346d1f865cbc38;p=openvswitch xenserver: Fix sense of -d test in /etc/init.d/openvswitch. It doesn't make sense to create a directory if it already exists. --- diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch index 926ce523..51b1d508 100755 --- a/xenserver/etc_init.d_openvswitch +++ b/xenserver/etc_init.d_openvswitch @@ -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"