Only change log file ownership if necessary.

This commit is contained in:
Jonah Bernhard 2014-03-30 14:44:17 -04:00
parent b20f7ab687
commit 36f87c73f1

View file

@ -505,7 +505,8 @@ EOF
sed -i -e '/^--*$/d' ${LOGFILE} sed -i -e '/^--*$/d' ${LOGFILE}
;; ;;
esac esac
chown ${LOG_FILE_OWNER} ${LOGFILE}
[[ -n "${LOG_FILE_OWNER}" ]] && chown ${LOG_FILE_OWNER} ${LOGFILE}
} }
backup_this_script() backup_this_script()