replace if..else based on presense of /etc/redhat-release with use of -s
instead of using '--stderr' on non-rhel based on the presense of /etc/redhat-release, just use the short form '-s' everywhere.
This commit is contained in:
parent
025c6278d4
commit
b8cb48ed38
@ -2,13 +2,9 @@
|
|||||||
|
|
||||||
logger_opts="-p user.info -t ec2"
|
logger_opts="-p user.info -t ec2"
|
||||||
|
|
||||||
if [ -f "/etc/redhat-release" ]
|
# rhels' version of logger_opts does not support long
|
||||||
then
|
# for of -s (--stderr), so use short form.
|
||||||
# Seems like rhel only supports the short version
|
logger_opts="$logger_opts -s"
|
||||||
logger_opts="$logger_opts -s"
|
|
||||||
else
|
|
||||||
logger_opts="$logger_opts --stderr"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Redirect stderr to stdout
|
# Redirect stderr to stdout
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user