fix(ingress.tjo.cloud/dyndns): use fetch and reset
Some checks failed
/ lint (push) Failing after 38s

This commit is contained in:
Tine 2025-01-06 20:40:42 +01:00
parent a7d7e7b6ff
commit c8c15161fe
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw

View file

@ -15,7 +15,8 @@ if [ ! -d .git ]; then
git sparse-checkout set --no-cone /ingress.tjo.cloud git sparse-checkout set --no-cone /ingress.tjo.cloud
git checkout git checkout
else else
git pull --depth=1 --rebase git fetch --depth=1
git reset --hard origin/main
fi fi
# Enter ingress directory # Enter ingress directory
cd /srv/ingress.tjo.cloud cd /srv/ingress.tjo.cloud