ajout script deploiement
This commit is contained in:
parent
38331c5ec7
commit
f40bec41c9
14
sisr1/tp05_squid/majservice.sh
Normal file
14
sisr1/tp05_squid/majservice.sh
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user