Fix: add safe.directory for git
parent
28fcd48a06
commit
a7478cce44
5
setup.sh
5
setup.sh
|
|
@ -101,13 +101,16 @@ REPO="https://token:$GIT_TOKEN@git.nexlab.at/boban/aziros.git"
|
|||
echo "→ Repository wird geklont..."
|
||||
if [ -d "/home/$USER/aziros/.git" ]; then
|
||||
echo "→ Repo existiert — pull"
|
||||
git config --global --add safe.directory \
|
||||
/home/$USER/aziros
|
||||
sudo -u $USER git -C \
|
||||
/home/$USER/aziros pull origin main
|
||||
else
|
||||
# Verzeichnis löschen falls vorhanden aber kein Git:
|
||||
rm -rf /home/$USER/aziros
|
||||
sudo -u $USER git clone \
|
||||
$REPO /home/$USER/aziros
|
||||
git config --global --add safe.directory \
|
||||
/home/$USER/aziros
|
||||
fi
|
||||
echo "✅ Repository bereit"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue