Project

General

Profile

« Previous | Next » 

Revision 35ad2c72

Added by Renato Botelho almost 10 years ago

Set environment var EVENT_PIPE, used by pkg to write out progress in json format

View differences:

src/usr/local/sbin/pfSense-upgrade
356 356
# Disable automatic update
357 357
export REPO_AUTOUPDATE=false
358 358

  
359
# pkg write progress in EVENT_PIPE
360
export EVENT_PIPE="/tmp/pkg-progress.fifo"
361

  
359 362
unset yes
360 363
unset action
361 364
unset action_pkg
......
409 412

  
410 413
trap _exit 1 2 15 EXIT
411 414

  
415
if [ ! -p "${EVENT_PIPE}" ]; then
416
	if [ -e "${EVENT_PIPE}" ]; then
417
		rm -rf ${EVENT_PIPE}
418
	fi
419
	mkfifo ${EVENT_PIPE}
420
fi
421

  
412 422
case "${action}" in
413 423
	upgrade)
414 424
		pkg_upgrade

Also available in: Unified diff