Skip to content

Commit 488271c

Browse files
authored
Merge pull request #5813 from medyagh/clean_cron
fix cron script installation
2 parents 3322c50 + 154522b commit 488271c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

hack/jenkins/linux_integration_tests_kvm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ EXPECTED_DEFAULT_DRIVER="kvm2"
3333
# We pick kvm as our gvisor testbed because it is fast & reliable
3434
EXTRA_TEST_ARGS="-gvisor"
3535

36-
mkdir cron && gsutil -qm rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron || echo "FAILED TO GET CRON FILES"
36+
mkdir -p cron && gsutil -qm rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron || echo "FAILED TO GET CRON FILES"
3737
sudo install cron/cleanup_and_reboot_Linux.sh /etc/cron.hourly/cleanup_and_reboot || echo "FAILED TO INSTALL CLEANUP"
3838

3939
# Download files and set permissions

hack/jenkins/linux_integration_tests_virtualbox.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ VM_DRIVER="virtualbox"
3030
JOB_NAME="VirtualBox_Linux"
3131
EXPECTED_DEFAULT_DRIVER="kvm2"
3232

33-
mkdir -p cron && gsutil -m rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron
34-
sudo install cleanup_and_reboot_Linux.sh /etc/cron.hourly/cleanup_and_reboot
33+
mkdir -p cron && gsutil -qm rsync "gs://minikube-builds/${MINIKUBE_LOCATION}/cron" cron || echo "FAILED TO GET CRON FILES"
34+
sudo install cron/cleanup_and_reboot_Linux.sh /etc/cron.hourly/cleanup_and_reboot || echo "FAILED TO INSTALL CLEANUP"
35+
3536

3637
# Download files and set permissions
3738
source ./common.sh

0 commit comments

Comments
 (0)