diff --git a/sisr1/tp05_squid/majservice.sh b/sisr1/tp05_squid/majservice.sh new file mode 100644 index 0000000..8050ee3 --- /dev/null +++ b/sisr1/tp05_squid/majservice.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +filename=squid.conf #nom du fichier à récuperer +filepath=/etc/squid #chemin +servicename=squid.service #nom du service + + +git pull #mise a jour du depot distant + +sudo cp $filepath/$filename $filepath/$filename.old #sauvegarde en changeant le nom .old + +sudo cp ./$filename $filepath/$filename + +sudo systemctl restart $servicename #restart le service \ No newline at end of file