Added support for Amazon Linux to installation scripts.

pull/5470/head
Ross McDonald 2016-01-26 08:17:12 -06:00
parent 144f3983c0
commit 11418fefba
2 changed files with 17 additions and 0 deletions

View File

@ -63,4 +63,11 @@ elif [[ -f /etc/debian_version ]]; then
install_init
install_update_rcd
fi
elif [[ -f /etc/os-release ]]; then
source /etc/os-release
if [[ $ID = "amzn" ]]; then
# Amazon Linux logic
install_init
install_chkconfig
fi
fi

View File

@ -43,4 +43,14 @@ elif [[ -f /etc/lsb-release ]]; then
disable_update_rcd
fi
fi
elif [[ -f /etc/os-release ]]; then
source /etc/os-release
if [[ $ID = "amzn" ]]; then
# Amazon Linux logic
if [[ "$1" = "0" ]]; then
# InfluxDB is no longer installed, remove from init system
rm -f /etc/default/influxdb
disable_chkconfig
fi
fi
fi