Skip to content

Commit

Permalink
Changed output redirect for which calls
Browse files Browse the repository at this point in the history
According to last review changes in similar PR on influxdb: influxdata/influxdb#7933
  • Loading branch information
martinseener authored and nathanielc committed Nov 8, 2017
1 parent ac36203 commit 56fc957
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if [[ -f /etc/redhat-release ]]; then
# Assuming SysVinit
install_init
# Run update-rc.d or fallback to chkconfig if not available
if which update-rc.d >/dev/null; then
if which update-rc.d &>/dev/null; then
install_update_rcd
else
install_chkconfig
Expand All @@ -58,7 +58,7 @@ elif [[ -f /etc/debian_version ]]; then
# Assuming SysVinit
install_init
# Run update-rc.d or fallback to chkconfig if not available
if which update-rc.d >/dev/null; then
if which update-rc.d &>/dev/null; then
install_update_rcd
else
install_chkconfig
Expand All @@ -70,7 +70,7 @@ elif [[ -f /etc/os-release ]]; then
# Amazon Linux logic
install_init
# Run update-rc.d or fallback to chkconfig if not available
if which update-rc.d >/dev/null; then
if which update-rc.d &>/dev/null; then
install_update_rcd
else
install_chkconfig
Expand Down

0 comments on commit 56fc957

Please sign in to comment.