From d799ae067f9d442bf15f3ee757346d1f865cbc38 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 26 Apr 2010 13:12:35 -0700 Subject: [PATCH] xenserver: Fix sense of -d test in /etc/init.d/openvswitch. It doesn't make sense to create a directory if it already exists. --- xenserver/etc_init.d_openvswitch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.30.2