diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-01-09 16:36:29 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-01-09 16:36:29 -0300 |
commit | 93e0f6ac875f873c46eb4fd5e40ec01c6a04ff49 (patch) | |
tree | e3d72626327d7b962c86345b3e68c0f051e86521 /install.sh | |
parent | 81753cbbe5e6d96ebb872ae28f3a287ce6c2274f (diff) |
Givint the option of installing docker from YAMS
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -38,7 +38,15 @@ check_dependencides() { if command -v $1 &> /dev/null; then send_success_message "$1 exists ✅ " else - send_error_message "⚠️ You need to have \"$1\" installed and in your PATH! EXITING ⚠️" + echo -e $(printf "\e[31m "⚠️ You need to have \"$1\" installed and in your PATH! ⚠️"\e[0m") + read -p "Do you want YAMS to install docker and docker-compose? IT ONLY WORKS ON DEBIAN AND UBUNTU! [y/N]: " install_docker + install_docker=${install_docker:-"n"} + + if [ $install_docker == "y" ]; then + bash ./docker.sh + else + send_error_message "Install docker and docker-compose and come back later!" + fi fi } |