fix rosdump

This commit is contained in:
Erki Aas 2024-12-05 19:49:22 +02:00
parent 0e79aa8f4e
commit 7d71f1b29c

View File

@ -6,6 +6,10 @@ data:
script.sh: | script.sh: |
#!/bin/bash #!/bin/bash
set -e set -e
mkdir -p /root/.ssh
cp /config/ssh_identity /root/.ssh/id_ecdsa
chmod 600 /root/.ssh/id_ed25519
sleep 100
if [ -d rosdump ]; then if [ -d rosdump ]; then
echo "Pulling Git repo" echo "Pulling Git repo"
cd rosdump cd rosdump
@ -58,7 +62,7 @@ spec:
image: codemowers/git image: codemowers/git
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
args: args:
- bash - sh
- /config/script.sh - /config/script.sh
volumeMounts: volumeMounts:
- name: config - name: config