-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Which' not in dependencies #8900
Comments
Alternatively, since this is obviously a bash script, you could do And since we're on the subject, the use of
|
@phemmer You're right, but the issue is that this is from the postinstall script of the RPM package. This isn't a homebrew install script :) Assuming I run a fedora container that comes without I admit that environments without |
Actually it is: https://github.com/influxdata/influxdb/blob/master/scripts/post-install.sh#L48 |
I meant it's from influx, @johandroz didn't write it himself! |
Some systems don't have `which` installed. Also fix some whitespace issues. Fixes #8900.
Some systems don't have `which` installed. Also fix some whitespace issues. Fixes influxdata#8900.
Bug report
System info: InfluxDB 1.3.6
Steps to reproduce:
I was creating a container with influxdb with a fedora 26 base. It doesn't come with many "standard utilities" such as which.
Thus this part of the post install script will fail :
if [[ -f /etc/redhat-release ]]; then
# RHEL-variant logic
which systemctl &>/dev/null
if [[ $? -eq 0 ]]; then
install_systemd
else
# Assuming sysv
install_init
install_chkconfig
fi
Additional info: We can resolve this by installing which before installing influx.
The text was updated successfully, but these errors were encountered: