add new client=

This commit is contained in:
Leon Vita 2022-09-01 19:25:03 +01:00
parent 453e911d3a
commit 6711fbe32e
4 changed files with 23 additions and 8 deletions

2
IPS
View File

@ -4,7 +4,7 @@ ips=(
#server_ips:
"10.10.11.1/24" "10.10.100.1/24" "10.10.11.2/24"
#Client_ips:
"10.10.10.10/24" "10.10.11.4/24" "10.10.11.3/24"
"10.10.11.100/24/24" "10.10.10.10/24" "10.10.11.4/24" "10.10.11.3/24"

15
gen.sh
View File

@ -2,6 +2,8 @@
source IPS
source push-to-repo
#--------------------Input---------------------
echo -e "File Name with .conf:\r"
read file_name
@ -104,15 +106,14 @@ sleep 1
echo -ne '\n'
}
#---------------Pushing-to-repo-----------------
echo -e "Start Pushing To Repo:"
#---------------Call-Functions-----------------
echo -ne '######################### (95%)\n'
git add .
git commit -m "new-client=$userinput"
git push
check_ip
push
echo -ne '##########################(100%)\n'
echo -e "Done Pushing."
#-----------------End--Pushing------------------
sleep 1
echo "Done generating config:"
check_ip

13
push-to-repo Normal file
View File

@ -0,0 +1,13 @@
#---------------Pushing-to-repo-----------------
push (){
echo -e "Start Pushing To Repo:"
git add .
git commit -m "add new client= $userinput"
git push
echo -e "Done Pushing."
}
#-----------------End--Pushing------------------

View File

@ -0,0 +1 @@
10.10.11.100/24 = privatekey= cL8bZbZ4ZqTCq3W0Gnd8jofdBQXa0YpJ2LgYc5Bz7kg= publickey= U8mPahpnM9ZdgFA+tZzyHU5IMdALev79vnIlvjZA4is=