From 30fd771045b56d6cf22dc21fb6e5d0b5e00ebb44 Mon Sep 17 00:00:00 2001 From: Johan Largy Date: Wed, 1 Feb 2023 15:24:16 +0100 Subject: [PATCH] modif script copy distant --- scripts/r-vp1-post.sh | 3 +++ scripts/r-vp2-post.sh | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/r-vp1-post.sh b/scripts/r-vp1-post.sh index 0054163..fd099fe 100644 --- a/scripts/r-vp1-post.sh +++ b/scripts/r-vp1-post.sh @@ -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 & diff --git a/scripts/r-vp2-post.sh b/scripts/r-vp2-post.sh index 7b61d08..9317c75 100644 --- a/scripts/r-vp2-post.sh +++ b/scripts/r-vp2-post.sh @@ -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