Update 'scripts/mongodbinstall.sh'
This commit is contained in:
parent
532163e5ba
commit
5d5c9d616c
|
@ -1,12 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
|
||||
read -p "Would you like to install MongoDB? (y/n) " go
|
||||
done
|
||||
while true
|
||||
do
|
||||
read -r -p "Would you like to install MongoDB? [Y/n] " input
|
||||
|
||||
if [ "$go" == 'n' ]; then
|
||||
exit
|
||||
fi
|
||||
case $input in
|
||||
[yY][eE][sS]|[yY])
|
||||
break
|
||||
;;
|
||||
[nN][oO]|[nN])
|
||||
break
|
||||
;;
|
||||
*)
|
||||
echo "That wasnt an option..."
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sudo apt update && apt upgrade -y
|
||||
sudo apt install wget curl gnupg2 software-properties-common apt-transport-https ca-certificates lsb-release
|
||||
|
|
Reference in New Issue
Block a user