Only change log file ownership if necessary.
This commit is contained in:
parent
b20f7ab687
commit
36f87c73f1
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue