script
This commit is contained in:
parent
f392bc65fd
commit
ee6c2608e2
14
sisr1/tp05-squid/script-maj
Normal file
14
sisr1/tp05-squid/script-maj
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