From d4dd00f58a502c9ca4b63e36ce6bc7a9945dc63c Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Tue, 27 Mar 2018 22:28:21 +0100 Subject: New upstream version 1.10.0+dfsg --- kickstart-static64.sh | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'kickstart-static64.sh') diff --git a/kickstart-static64.sh b/kickstart-static64.sh index 98c224f47..1e1b089b8 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" -o "${1}" = "--accept" ] + 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 -- cgit v1.2.3