Added support for Amazon Linux to installation scripts.
parent
144f3983c0
commit
11418fefba
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue