[fix] Redirect so-allow output to log

This commit is contained in:
William Wernert
2020-05-27 15:49:41 -04:00
parent 04800277c2
commit 3712eb0acb
2 changed files with 4 additions and 2 deletions

View File

@@ -998,7 +998,7 @@ parse_options() {
export {https,ftp,rsync,all}_proxy="$http_proxy"
;;
"--allow-analyst"|"--allow=a")
allow='a'
export allow='a'
;;
*)
if [[ $1 = --* ]]; then

View File

@@ -545,7 +545,9 @@ fi
success=$(tail -10 $setup_log | grep Failed | awk '{ print $2}')
if [[ "$success" = 0 ]]; then
whiptail_setup_complete
if [[ -n $allow ]]; then so-allow -$allow; fi
if [[ -n $allow ]]; then
so-allow -$allow >> $setup_log 2>&1
fi
if [[ $THEHIVE == 1 ]]; then
check_hive_init_then_reboot
else