summaryrefslogtreecommitdiffstats
path: root/kickstart-static64.sh
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-12-25 20:25:15 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-12-25 20:25:15 +0200
commit45e0bc526ed896f236b208994edcacdfc5806c7e (patch)
tree229b87bdb297f73c73d0f8030e314a2b0db838d8 /kickstart-static64.sh
parentcbaa64addcf1da394c898fc00657a3915c33bbca (diff)
support option --dont-start-it on static 64 bit installer; fixes https://github.com/firehol/binary-packages/issues/3
Diffstat (limited to 'kickstart-static64.sh')
-rwxr-xr-xkickstart-static64.sh24
1 files changed, 19 insertions, 5 deletions
diff --git a/kickstart-static64.sh b/kickstart-static64.sh
index 98c224f47d..46c3c92b08 100755
--- a/kickstart-static64.sh
+++ b/kickstart-static64.sh
@@ -213,16 +213,30 @@ fi
# ---------------------------------------------------------------------------------------------------------------------
opts=
-if [ "${1}" = "--dont-wait" -o "${1}" = "--non-interactive" ]
-then
- opts="--accept"
-fi
+inner_opts=
+while [ ! -z "${1}" ]
+do
+ if [ "${1}" = "--dont-wait" -o "${1}" = "--non-interactive" ]
+ then
+ opts="${opts} --accept"
+ elif [ "${1}" = "--dont-start-it" ]
+ then
+ inner_opts="${inner_opts} ${1}"
+ else
+ echo >&2 "Unknown option '${1}'"
+ exit 1
+ fi
+ shift
+done
+[ ! -z "${inner_opts}" ] && inner_opts="-- ${inner_opts}"
+
+# ---------------------------------------------------------------------------------------------------------------------
progress "Installing netdata"
sudo=
[ "${UID}" != "0" ] && sudo="sudo"
-run ${sudo} sh "/tmp/${LATEST}" ${opts}
+run ${sudo} sh "/tmp/${LATEST}" ${opts} ${inner_opts}
if [ $? -eq 0 ]
then