Commit 98550c51 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

slapos_web_deploy: imt_generic_vm_bootstrap doesn't fail if cron is not present

parent 7e33b4fc
......@@ -29,7 +29,6 @@ ansible-playbook imt-vm-bootstrap.yml -i hosts --connection=local
# Check if playbook has been correctly extracted
ANSIBLE_CRON_FILE="/etc/cron.d/ansible-vm-bootstrap"
COUNT=$(ls /opt/slapos.playbook | wc -l)
if [[ ! $COUNT -gt 1 ]]
then
......@@ -38,10 +37,8 @@ then
exit 1
fi
# check if Ansible cron task was added
if [[ ! -s "$ANSIBLE_CRON_FILE" ]]
then
exit 1
fi
# check if Ansible script was added
ANSIBLE_RUN_SCRIPT="/usr/local/bin/vm-bootstrap-update"
[ -s "$ANSIBLE_RUN_SCRIPT" ] || exit 1
exit 0
\ No newline at end of file
exit 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment