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"
|
||||
|
||||
if [ -f "/etc/redhat-release" ]
|
||||
then
|
||||
# Seems like rhel only supports the short version
|
||||
logger_opts="$logger_opts -s"
|
||||
else
|
||||
logger_opts="$logger_opts --stderr"
|
||||
fi
|
||||
# rhels' version of logger_opts does not support long
|
||||
# for of -s (--stderr), so use short form.
|
||||
logger_opts="$logger_opts -s"
|
||||
|
||||
# Redirect stderr to stdout
|
||||
exec 2>&1
|
||||
|
Loading…
x
Reference in New Issue
Block a user