mhassan2 / splunk-n-box

Docker Splunk "Orchestration" bash script (6,000+ lines) to create fully automated pre-configured splunk site-2-site clusters or stand alone containers. Awesome tool for training and testing!
https://github.com/mhassan2/splunk-n-box
138 stars 32 forks source link

undocumented dependency: bc #3

Closed hire-vladimir closed 7 years ago

hire-vladimir commented 7 years ago

FYI.

Error response from daemon: lstat /var/lib/docker/overlay2/c4490e3da3ed1dd17dbe943fc0ae0bf613799d67306aac223fa97fa821515a5b/merged/opt/splunk/etc/system/local: no such file or directory
Error response from daemon: Container 8e524418b7bb36473c978985ce57fd1dc0654fed1ebc0d27a29d4aaf4b7a837f is not running
    ->Updating dnsmasq records[192.168.1.104  IDX01]...OK!
dnsmasq: no process found
./splunknbox.sh: line 325: bc: command not found
./splunknbox.sh: line 326: bc: command not found

on

root@ubuntu-2gb-nyc3-01:~/splunk-n-box# cat /etc/*rel*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
root@ubuntu-2gb-nyc3-01:~/splunk-n-box#
mhassan2 commented 7 years ago

-Added check for "bc" command in v4.0. Works in ubuntu & MacOS only