commit by to_remotes 2023-10-05 09:22:13 +0200 from vmdevac
parent
686c6bc98d
commit
a483e9680e
12
init.sh
12
init.sh
|
|
@ -75,14 +75,22 @@ else
|
||||||
|
|
||||||
if [ "$ready_to_pull" = "yes" ]; then
|
if [ "$ready_to_pull" = "yes" ]; then
|
||||||
echo "preparing"
|
echo "preparing"
|
||||||
cat <<EOT >> $HOME/.ssh/config
|
|
||||||
|
|
||||||
|
if grep -Fxq "git.service.wiseadvice.eu" $HOME/.ssh/config
|
||||||
|
then
|
||||||
|
echo "ssh configuration already set"
|
||||||
|
else
|
||||||
|
cat <<EOT >> $HOME/.ssh/config
|
||||||
Host git.service.wiseadvice.eu
|
Host git.service.wiseadvice.eu
|
||||||
HostName git.service.wiseadvice.eu
|
HostName git.service.wiseadvice.eu
|
||||||
IdentityFile ~/.ssh/deploy_key
|
IdentityFile ~/.ssh/deploy_key
|
||||||
Port 8422
|
Port 8422
|
||||||
IdentitiesOnly yes
|
IdentitiesOnly yes
|
||||||
|
|
||||||
EOT
|
EOT
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
mkdir -p $WA_REPO
|
mkdir -p $WA_REPO
|
||||||
|
|
||||||
echo "export CLIENT_NAME=$CLIENT_NAME" > $WA_REPO/export_client_name.sh
|
echo "export CLIENT_NAME=$CLIENT_NAME" > $WA_REPO/export_client_name.sh
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue