Tyleo-Scripts/spec/irp-converttoserver
2024-02-18 18:09:22 +00:00

27 lines
No EOL
1 KiB
Bash
Executable file
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
clear
echo "/>[info] Welcome - Bienvenue - Bienvenido - مرحبا بكم - 欢迎 - いらっしゃいませ"
echo "/>[info] Script IRP-CONVERTTOSERVER v1 pour Safyr IV par Tyleo Dev™ - Convertisseur de distribution vers un usage Serveur (sans bureau)"
echo "/>[info] Vérification de l'OS ..."
if ! command -v dpkg 1> /dev/null
then
echo "/>[error] Systéme non DEB - Lancement annulé"
echo "/>[error] Utilisez irp-rhel pour RPM."
echo "/>[info] curl s.tyleodev.fr/setup/irp-rhel | bash"
exit
fi
echo "!>[WARNING] Si il s'agit d'un PC de bureau ou d'une installation pour usage normal, faite CTRL+C dans les 10 secondes qui suivent !!"
sleep 10
echo "/>(info) DPKG Détécté ==> OK"
echo "/>[apt] Mise à jour de l'Index APT"
sudo apt-get update
echo "/>[apt] Suppression des paquets de Bureau (DE) ..."e
sudo apt-get purge plymouth -y
sudo apt-get remove libx11.* libqt.* libgtk.* -y
echo "/>[info] Conversion Terminée, un reboot est nécessaire. Reboot dans 5 secondes."
sleep 5
sudo reboot -f