Sfoglia il codice sorgente

fix(script/crontab): Update podman PATH

Signed-off-by: Jeremy MAURO <jeremy.mauro@gmail.com>
Jeremy MAURO 2 anni fa
parent
commit
80ab30ff41
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      scripts/crontab.sh

+ 2 - 2
scripts/crontab.sh

@@ -1,9 +1,9 @@
 #!/usr/bin/env bash
 #
 IMAGE=${1:-"docker.local/speedtest:20211029"}
-PODNAME="pod_speedtest"
+PODNAME="speedtest"
 HEADER="#[SPEEDTEST] On certains speedtest server the packet_loss is not displayed so let's define the usage of the following SFR server:
 #[SPEEDTEST]       - url='http://speedtest.mire.sfr.net:8080/speedtest/upload.php' lat='48.8742' lon='2.3470' name='Paris' country='France' cc='FR' sponsor='SFR' id='12746' host='speedtest.mire.sfr.net:8080'"
 
 echo "Setting the Crontab in place"
-(CRONTAB_NOHEADER=Y crontab -l | egrep -v -- '--name connectivity_test|SPEEDTEST|INFLUXDB' ; echo "${HEADER}"; echo "*/5 * * * * /usr/bin/podman pod inspect ${PODNAME} 2>&1 > /dev/null && /usr/bin/podman run --env INFLUXDB* --tty=true --interactive --name=connectivity_test --replace --rm --network=speedtest --pod=${PODNAME} ${IMAGE} 2>&1 > /dev/null") | crontab -
+(CRONTAB_NOHEADER=Y crontab -l | egrep -v -- '--name connectivity_test|SPEEDTEST|INFLUXDB' ; echo "${HEADER}"; echo "*/5 * * * * /usr/local/bin/podman pod inspect ${PODNAME} 2>&1 > /dev/null && /usr/local/bin/podman run --env INFLUXDB* --log-driver=k8s-file --tty=true --interactive --name=connectivity_test --replace --rm --pod=${PODNAME} ${IMAGE} 2>&1 > /dev/null") | crontab -