forked from PAPAMICA/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debian_install_guacamole.sh
32 lines (29 loc) · 1.29 KB
/
debian_install_guacamole.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
clear
SERVER_IP=$(hostname -i)
# Installation des dépendances et de docker
apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable"
apt-get update
apt-get -y install docker-ce docker-compose
systemctl enable docker
systemctl start docker
#Lancement du docker-compose.yml
cd ~/scripts/guacamole/
docker-compose up -d
clear
tput bold; tput setaf 7; echo "LISTES DES CONTAINERS EN COURS : "
tput setaf 3; echo ""
docker container ls
echo ""
tput setaf 7; echo "--------------------------------------------------"
tput bold; tput setaf 7; echo " => INSTALLATION TERMINEE <= "
tput setaf 7; echo ""
tput setaf 7; echo " Lien : $SERVER_IP:8080 "
tput setaf 7; echo " Identifiant : guacadmin | MDP : guacadmin "
tput setaf 7; echo ""
tput bold; tput setaf 6; echo " By PAPAMICA "
tput bold; tput setaf 6; echo " Labo-Tech.fr "
tput setaf 7; echo "--------------------------------------------------"
tput setaf 2; echo ""