mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
delete-fifo before make-fifo
This commit is contained in:
parent
3a3eabcbb9
commit
c8152fc3bf
1 changed files with 2 additions and 0 deletions
|
@ -457,6 +457,8 @@ shift $((OPTIND-1))
|
||||||
# Define our logging file and pipe paths
|
# Define our logging file and pipe paths
|
||||||
LOGFILE="/tmp/$( echo "$__ScriptName" | sed s/.sh/.log/g )"
|
LOGFILE="/tmp/$( echo "$__ScriptName" | sed s/.sh/.log/g )"
|
||||||
LOGPIPE="/tmp/$( echo "$__ScriptName" | sed s/.sh/.logpipe/g )"
|
LOGPIPE="/tmp/$( echo "$__ScriptName" | sed s/.sh/.logpipe/g )"
|
||||||
|
# Ensure no residual pipe exists
|
||||||
|
rm "$LOGPIPE" 2>/dev/null
|
||||||
|
|
||||||
# Create our logging pipe
|
# Create our logging pipe
|
||||||
# On FreeBSD we have to use mkfifo instead of mknod
|
# On FreeBSD we have to use mkfifo instead of mknod
|
||||||
|
|
Loading…
Add table
Reference in a new issue