wip
This commit is contained in:
parent
96f08229b3
commit
67059eb38f
1 changed files with 8 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue