mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 02:00:22 +00:00
Merge pull request #1256 from noelmcloughlin/freebsd
Ensure pipe is absent before mkfifo/mknod
This commit is contained in:
commit
d276f9cd1b
1 changed files with 2 additions and 0 deletions
|
@ -457,6 +457,8 @@ shift $((OPTIND-1))
|
|||
# Define our logging file and pipe paths
|
||||
LOGFILE="/tmp/$( echo "$__ScriptName" | sed s/.sh/.log/g )"
|
||||
LOGPIPE="/tmp/$( echo "$__ScriptName" | sed s/.sh/.logpipe/g )"
|
||||
# Ensure no residual pipe exists
|
||||
rm "$LOGPIPE" 2>/dev/null
|
||||
|
||||
# Create our logging pipe
|
||||
# On FreeBSD we have to use mkfifo instead of mknod
|
||||
|
|
Loading…
Add table
Reference in a new issue