From b6181f49fa06c4f20f0758d7738d0ede968e38cd Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 28 Nov 2018 10:23:46 +0100 Subject: [PATCH] allow using elastic-upgrade script while being root --- scripts/elastic-upgrade.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/elastic-upgrade.sh b/scripts/elastic-upgrade.sh index e7a8aaf93..5d67aa5fa 100755 --- a/scripts/elastic-upgrade.sh +++ b/scripts/elastic-upgrade.sh @@ -12,8 +12,9 @@ config() { if [ "$(whoami)" = "root" ] then - echo "Please do not run this script as root, elevation will be prompted if needed." - exit 1 + echo "It is not recommended to run this script as root. As a normal user, elevation will be prompted if needed." + read -rp "Continue anyway? (y/n) " confirm