Add sudo notice

This commit is contained in:
David Boreham 2023-04-05 21:30:38 -06:00
parent 56a62026a6
commit 3ff51b52ff

View File

@ -8,15 +8,15 @@ install_dir=~/bin
# First display a reasonable warning to the user unless run with -y # First display a reasonable warning to the user unless run with -y
if ! [[ $# -eq 1 && $1 == "-y" ]]; then if ! [[ $# -eq 1 && $1 == "-y" ]]; then
echo "**************************************************************************************" echo "**************************************************************************************"
echo "This script installs Laconic Stack Orchestrator into: ${install_dir}" echo "This script requires sudo privilege. It installs Laconic Stack Orchestrator"
echo "It also *removes* any existing docker installed on this machine then installs" echo "into: ${install_dir}. It also *removes* any existing docker installed on"
echo "the latest docker release as well as other required packages." echo "this machine and then installs the latest docker release as well as other"
echo "required packages."
echo "Only proceed if you are sure you want to make those changes to this machine." echo "Only proceed if you are sure you want to make those changes to this machine."
echo "**************************************************************************************" echo "**************************************************************************************"
read -p "Are you sure you want to proceed? " -n 1 -r read -p "Are you sure you want to proceed? " -n 1 -r
echo echo
if [[ ! $REPLY =~ ^[Yy]$ ]] if [[ ! $REPLY =~ ^[Yy]$ ]]; then
then
exit 1 exit 1
fi fi
fi fi