Add sudo notice
This commit is contained in:
parent
56a62026a6
commit
3ff51b52ff
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user