mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-08-06 21:28:30 +02:00
Added tools folder
- Moved providers scrapper by @Teifun2 into tool folder - Added code generator for avoid the use of env variables (wip)
This commit is contained in:
21
tools/dns_challenge_update/code-gen/update.sh
Normal file
21
tools/dns_challenge_update/code-gen/update.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#/bin/bash
|
||||
|
||||
repo_url="https://github.com/go-acme/lego"
|
||||
|
||||
# Check if the folder "./lego" exists
|
||||
if [ -d "./lego" ]; then
|
||||
# If the folder exists, change into it and perform a git pull
|
||||
echo "Folder './lego' exists. Pulling updates..."
|
||||
cd "./lego" || exit
|
||||
git pull
|
||||
cd ../
|
||||
else
|
||||
# If the folder doesn't exist, clone the repository
|
||||
echo "Folder './lego' does not exist. Cloning the repository..."
|
||||
git clone "$repo_url" "./lego" || exit
|
||||
fi
|
||||
|
||||
# Run the extract.go to get all the config from lego source code
|
||||
go run ./extract.go
|
||||
|
||||
echo "Config generated"
|
Reference in New Issue
Block a user