127 lines
No EOL
3.3 KiB
Bash
Executable file
127 lines
No EOL
3.3 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
clear
|
|
|
|
# MENU #####################################################
|
|
|
|
echo "-------------------------------------------------------"
|
|
echo "- Menu Interactif des Scripts de Tyleo (IRP-*) -"
|
|
echo "-------------------------------------------------------"
|
|
echo "- 0/Q/q. Annuler et quitter -"
|
|
echo "----System---------------------------------------------"
|
|
echo "- 1. Script de deploiement de base UBUNTU/DEB -"
|
|
echo "- 2. Script de deploiement de base RPM/RHEL -"
|
|
echo "- 3. Script de deploiement de base END/ARCH -"
|
|
echo "- QS. Installer le QuickSudo (sudo su sans pass) -"
|
|
echo "----Tools----------------------------------------------"
|
|
echo "- 4. Installer CTOP - Task Manager for Docker -"
|
|
echo "- 5. Installer BTOP - Task Manager for Linux -"
|
|
echo "- 6. Installer LZD - Project Manager for Docker -"
|
|
echo "- 7. Installer Cockpit Docker - Fixed Version 265+ -"
|
|
echo "----Modules-Docker-------------------------------------"
|
|
echo "- 8. Deployer Docker-UPD Zone Dev - Cron à 2h-J1/Sem -"
|
|
echo "- 9. Deployer Docker-PRD Zone Prod - Cron à 00h00 -"
|
|
echo "- P. Deployer Portainer.IO sur le port 10443 (HTTPS) -"
|
|
echo "- K. Deployer une instance Uptime Kuma (Interactive) -"
|
|
echo "-------------------------------------------------------"
|
|
|
|
############################################################
|
|
|
|
# Choix
|
|
echo -n "- Votre choix : "
|
|
|
|
# Var Save
|
|
read ask
|
|
|
|
# 1. Script de deploiement de base UBUNTU/DEB
|
|
if [[ $ask = "QS" ]]; then
|
|
curl s.tyleodev.fr/setup/irp-qs | bash
|
|
exit
|
|
fi
|
|
|
|
# 1. Script de deploiement de base UBUNTU/DEB
|
|
if [[ $ask = [1] ]]; then
|
|
curl s.tyleodev.fr/setup/irp-deb | bash
|
|
exit
|
|
fi
|
|
|
|
|
|
# 2. Script de deploiement de base RPM/RHEL
|
|
if [[ $ask = [2] ]]; then
|
|
curl s.tyleodev.fr/setup/irp-rhel | bash
|
|
exit
|
|
fi
|
|
|
|
|
|
# 3. Script de deploiement de base END/ARCH
|
|
if [[ $ask = [3] ]]; then
|
|
curl s.tyleodev.fr/setup/irp-arch | bash
|
|
exit
|
|
fi
|
|
|
|
|
|
# 4. Installer CTOP - Task Manager for Docker
|
|
if [[ $ask = [4] ]]; then
|
|
curl s.tyleodev.fr/setup/irp-ctop | bash
|
|
exit
|
|
fi
|
|
|
|
|
|
# 5. Installer BTOP - Task Manager for Linux
|
|
if [[ $ask = [5] ]]; then
|
|
sudo apt-get install btop -y
|
|
exit
|
|
fi
|
|
|
|
|
|
# 6. Installer LZD - Project Manager for Docker
|
|
if [[ $ask = [6] ]]; then
|
|
curl s.tyleodev.fr/setup/irp-lzd | bash
|
|
curl s.tyleodev.fr/setup/irp-lazydocker | bash
|
|
exit
|
|
fi
|
|
|
|
|
|
# 7. Installer Cockpit Docker - Fixed Version 265+
|
|
if [[ $ask = [7] ]]; then
|
|
sudo apt-get remove cockpit-docker -y
|
|
curl s.tyleodev.fr/setup/irp-cdocker | bash
|
|
exit
|
|
fi
|
|
|
|
|
|
# 8. Deployer Docker-UPD Zone Dev - Cron à 2h-J1/Sem
|
|
if [[ $ask = [8] ]]; then
|
|
curl s.tyleodev.fr/setup/irp-dockerupd-dev | bash
|
|
exit
|
|
fi
|
|
|
|
|
|
# 9. Deployer Docker-PRD Zone Prod - Cron à 00h00
|
|
if [[ $ask = [9] ]]; then
|
|
curl s.tyleodev.fr/setup/irp-dockerupd-prod | bash
|
|
exit
|
|
fi
|
|
|
|
|
|
# P. Deployer Portainer.IO sur le port 10443 (HTTPS)
|
|
if [[ $ask = [P] ]]; then
|
|
curl s.tyleodev.fr/setup/irp-portainer | bash
|
|
exit
|
|
fi
|
|
|
|
|
|
# K. Deployer une instance Uptime Kuma (Interactive)
|
|
if [[ $ask = [K] ]]; then
|
|
curl s.tyleodev.fr/setup/irp-kuma | bash
|
|
exit
|
|
fi
|
|
|
|
|
|
# Bonus.
|
|
if [[ $ask = [B] ]]; then
|
|
curl s.tyleodev.fr/setup/irp-ytmp3 | bash
|
|
exit
|
|
fi
|
|
|
|
exit |