diff options
author | Renato Botelho <renato@netgate.com> | 2015-09-25 15:33:35 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-09-25 15:33:35 -0300 |
commit | fdf35e233a04182e9c7c8600d298dd6ed401048c (patch) | |
tree | 7ffc7a1e2326474729976ead78f82f3cfda5c9a2 /src/usr/local/sbin/pfSense-upgrade | |
parent | c979e86b9bd881cefed0a637d81f042ed95372d5 (diff) | |
download | pfsense-fdf35e233a04182e9c7c8600d298dd6ed401048c.zip pfsense-fdf35e233a04182e9c7c8600d298dd6ed401048c.tar.gz |
Fix logic to set EVENT_PIPE
Diffstat (limited to 'src/usr/local/sbin/pfSense-upgrade')
-rwxr-xr-x | src/usr/local/sbin/pfSense-upgrade | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade index 64b84e7..545eadd 100755 --- a/src/usr/local/sbin/pfSense-upgrade +++ b/src/usr/local/sbin/pfSense-upgrade @@ -420,12 +420,14 @@ echo $$ > ${pid_file} trap _exit 1 2 15 EXIT -if [ -n "${progress_fifo}" -a ! -p "${progress_fifo}" ]; then - if [ -e "${EVENT_PIPE}" ]; then +if [ -n "${progress_fifo}" ]; then + if [ ! -e "${progress_fifo}" ]; then + mkfifo ${progress_fifo} + fi + if [ ! -p "${progress_fifo}" ]; then _echo "ERROR: ${progress_fifo} is not a FIFO" _exit 1 fi - mkfifo ${progress_fifo} export EVENT_PIPE="${progress_fifo}" fi |