modif script copy distant

This commit is contained in:
Johan Largy 2023-02-01 15:24:16 +01:00
parent ca2f1ca8a1
commit 30fd771045
2 changed files with 6 additions and 1 deletions

View File

@ -1,2 +1,5 @@
#!/bin/bash
#stoper le fw
systemctl stop ferm
#ouverture du service web pour copie distante
cd /root/confwg/ && python3 -m http.server 8000 &

View File

@ -1,3 +1,5 @@
#!/bin/bash
#recuperation du fichier de config
wget http://r-vp1.gsb.adm:8000/wg0-b.qconf
#renomage fichier et mv
mv ./wg0-b.conf /etc/wireguard/wg0.conf