add new client=
This commit is contained in:
parent
453e911d3a
commit
6711fbe32e
2
IPS
2
IPS
|
@ -4,7 +4,7 @@ ips=(
|
||||||
#server_ips:
|
#server_ips:
|
||||||
"10.10.11.1/24" "10.10.100.1/24" "10.10.11.2/24"
|
"10.10.11.1/24" "10.10.100.1/24" "10.10.11.2/24"
|
||||||
#Client_ips:
|
#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
15
gen.sh
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
source IPS
|
source IPS
|
||||||
|
|
||||||
|
source push-to-repo
|
||||||
|
|
||||||
#--------------------Input---------------------
|
#--------------------Input---------------------
|
||||||
echo -e "File Name with .conf:\r"
|
echo -e "File Name with .conf:\r"
|
||||||
read file_name
|
read file_name
|
||||||
|
@ -104,15 +106,14 @@ sleep 1
|
||||||
echo -ne '\n'
|
echo -ne '\n'
|
||||||
}
|
}
|
||||||
|
|
||||||
#---------------Pushing-to-repo-----------------
|
|
||||||
echo -e "Start Pushing To Repo:"
|
#---------------Call-Functions-----------------
|
||||||
echo -ne '######################### (95%)\n'
|
echo -ne '######################### (95%)\n'
|
||||||
git add .
|
check_ip
|
||||||
git commit -m "new-client=$userinput"
|
push
|
||||||
git push
|
|
||||||
echo -ne '##########################(100%)\n'
|
echo -ne '##########################(100%)\n'
|
||||||
echo -e "Done Pushing."
|
|
||||||
#-----------------End--Pushing------------------
|
#-----------------End--Pushing------------------
|
||||||
sleep 1
|
sleep 1
|
||||||
echo "Done generating config:"
|
echo "Done generating config:"
|
||||||
check_ip
|
|
||||||
|
|
||||||
|
|
|
@ -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------------------
|
Loading…
Reference in New Issue