Add shebang to postinstall script (fixes installation on Debian family)
Closes #212
This commit is contained in:
parent
b04706b875
commit
450f5e03a5
|
@ -23,6 +23,8 @@ a naming consistency issue, so cpu_percentageIdle will become cpu_usage_idle
|
||||||
- [#192](https://github.com/influxdb/telegraf/issues/192): Increase compatibility of postgresql plugin. Now supports versions 8.1+
|
- [#192](https://github.com/influxdb/telegraf/issues/192): Increase compatibility of postgresql plugin. Now supports versions 8.1+
|
||||||
- [#203](https://github.com/influxdb/telegraf/issues/203): EL5 rpm support. Thanks @ekini!
|
- [#203](https://github.com/influxdb/telegraf/issues/203): EL5 rpm support. Thanks @ekini!
|
||||||
- [#206](https://github.com/influxdb/telegraf/issues/206): CPU steal/guest values wrong on linux.
|
- [#206](https://github.com/influxdb/telegraf/issues/206): CPU steal/guest values wrong on linux.
|
||||||
|
- [#212](https://github.com/influxdb/telegraf/issues/212): Add hashbang to postinstall script. Thanks @ekini!
|
||||||
|
- [#212](https://github.com/influxdb/telegraf/issues/212): Fix makefile warning. Thanks @ekini!
|
||||||
|
|
||||||
## v0.1.8 [2015-09-04]
|
## v0.1.8 [2015-09-04]
|
||||||
|
|
||||||
|
|
|
@ -155,6 +155,7 @@ do_build() {
|
||||||
generate_postinstall_script() {
|
generate_postinstall_script() {
|
||||||
version=$1
|
version=$1
|
||||||
cat <<EOF >$POST_INSTALL_PATH
|
cat <<EOF >$POST_INSTALL_PATH
|
||||||
|
#!/bin/sh
|
||||||
rm -f $INSTALL_ROOT_DIR/telegraf
|
rm -f $INSTALL_ROOT_DIR/telegraf
|
||||||
rm -f $INSTALL_ROOT_DIR/init.sh
|
rm -f $INSTALL_ROOT_DIR/init.sh
|
||||||
ln -sfn $INSTALL_ROOT_DIR/versions/$version/telegraf $INSTALL_ROOT_DIR/telegraf
|
ln -sfn $INSTALL_ROOT_DIR/versions/$version/telegraf $INSTALL_ROOT_DIR/telegraf
|
||||||
|
|
Loading…
Reference in New Issue