From c6c30a4b9dc4ddec6c201c5a9f5a26e5a952cad2 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Sun, 10 Jan 2021 18:39:43 +0100 Subject: [PATCH] init: finalize adjust user --- bashbot.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bashbot.sh b/bashbot.sh index ac36b75..3040a39 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -30,7 +30,7 @@ BOTCOMMANDS="-h help init start stop status suspendback resumeback killb # 8 - curl/wget missing # 10 - not bash! # -#### $$VERSION$$ v1.25-dev-53-gfb8b022 +#### $$VERSION$$ v1.25-dev-54-gbd664da ################################################################## # emmbeded system may claim bash but it is not @@ -1128,7 +1128,8 @@ bot_init() { exit 3 elif [[ "${UID}" != "0" && "${touser}" != "${runuser}" ]]; then # different user but not root ... - printf "${ORANGE}You are not root change to \"${touser}\" may fail, try \"sudo ./bashbot.sh init\"${NN}" 1>&2 + printf "${ORANGE}You are not root, adjusting permissions may fail. Try \"sudo ./bashbot.sh init\"${NN}Press to stop or to continue..." 1>&2 + [ -n "${INTERACTIVE}" ] && read -r runuser fi # adjust permissions printf "Adjusting files and permissions for user \"${touser}\" ...\n"