scripts/server/desec-ip-sync/run.bash
devaine 5964402f81
Some checks failed
/ desec-script (push) Has been cancelled
forgejo/scripts/pipeline/head This commit looks good
refactor & build: updated desec-ip-sync, might cause breaking change
2026-11-10 22:56:54 -06:00

16 lines
343 B
Bash
Executable file

#!/bin/bash
if [ ! -f .env ]; then
env | grep DESEC_TOKEN >>.env
env | grep CURRENT_DOMAIN >>.env
fi
# If virtual environment does exist..
if [ ! -d .venv ]; then
python3 -m venv .venv
source .venv/bin/activate
pip install -U -r requirements.txt
pip install -U pip # Update pip to the latest version
else
source .venv/bin/activate
fi