Modifié : automate.sh #4

Closed
guillaume.emorine wants to merge 2 commits from tests into main
2 changed files with 19 additions and 1 deletions

View File

@ -15,9 +15,11 @@ echo "Quelle branche est concernée ? [1 = main, 2 = tests]"
read branch read branch
if [ $branch == 1 ] ; then if [ $branch == 1 ] ; then
if [ $answer == 1 ] ; then if [ $answer == 1 ] ; then
git checkout main
echo "Récupération des fichiers à jour, branche main..." echo "Récupération des fichiers à jour, branche main..."
git pull origin main git pull origin main
else else
git checkout main
echo "Ajout des fichiers au Gitea..." echo "Ajout des fichiers au Gitea..."
sleep 2 sleep 2
git add . git add .
@ -30,9 +32,11 @@ if [ $branch == 1 ] ; then
fi fi
else else
if [ $answer == 1 ] ; then if [ $answer == 1 ] ; then
git checkout tests
echo "Récupération des fichiers à jour dans la branche tests..." echo "Récupération des fichiers à jour dans la branche tests..."
git pull origin tests git pull origin tests
else else
git checkout tests
echo "Ajout des fichiers au Gitea, branche tests..." echo "Ajout des fichiers au Gitea, branche tests..."
sleep 2 sleep 2
git add . git add .

View File

@ -1 +1,15 @@
Chaque dossier porte le nom du TP associé. Chaque dossier porte le numéro du TP associé.
01: Mise en oeuvre d'une infrastructure DHCP et routage.
02: Paramétrage d'un serveur DNS. 03: Création d'un réseau privé à administrer.
04: Administration d'un réseau privé.
05: Création d'un partage de fichiers Samba.
06: Paramétrage d'un serveur proxy.
07: Firewall avec netfilter et nftables.
08: Modification d'une infrastructure.