projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b3289f
)
xenserver: Fix sense of -d test in /etc/init.d/openvswitch.
author
Ben Pfaff
<blp@nicira.com>
Mon, 26 Apr 2010 20:12:35 +0000
(13:12 -0700)
committer
Ben 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
patch
|
blob
|
history
diff --git
a/xenserver/etc_init.d_openvswitch
b/xenserver/etc_init.d_openvswitch
index 926ce5236204349fd2e7596f22723fb3973e5497..51b1d508444be78c42f7db2ba35cad0a7aa2fae8 100755
(executable)
--- 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"