This commit is contained in:
pika 2025-04-10 21:28:33 +02:00
parent 96f08229b3
commit 67059eb38f

View file

@ -67,11 +67,16 @@ gitDirSetup() {
git branch -m main
git remote add "$(hostname)" "https://git.k4li.de/homelab/${location}-$(hostname).git"
if git remote add "$(hostname)" "https://git.k4li.de/homelab/${location}-$(hostname).git"; then
git commit -m "Initial script commit"
git add .
git push -u origin main
git commit -m "Initial script commit"
git push -u origin main
else
echo_error 'Failed setting the git repo up with git remote add "$(hostname)" "https://git.k4li.de/homelab/${location}-$(hostname).git"'
fi
}
set_cronjob() {