Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
98550c51
Commit
98550c51
authored
Mar 16, 2022
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_web_deploy: imt_generic_vm_bootstrap doesn't fail if cron is not present
parent
7e33b4fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
master/bt5/slapos_web_deploy/PathTemplateItem/web_page_module/deploy_imt_generic_vm_bootstrap.txt
...eItem/web_page_module/deploy_imt_generic_vm_bootstrap.txt
+4
-7
No files found.
master/bt5/slapos_web_deploy/PathTemplateItem/web_page_module/deploy_imt_generic_vm_bootstrap.txt
View file @
98550c51
...
@@ -29,7 +29,6 @@ ansible-playbook imt-vm-bootstrap.yml -i hosts --connection=local
...
@@ -29,7 +29,6 @@ ansible-playbook imt-vm-bootstrap.yml -i hosts --connection=local
# Check if playbook has been correctly extracted
# Check if playbook has been correctly extracted
ANSIBLE_CRON_FILE="/etc/cron.d/ansible-vm-bootstrap"
COUNT=$(ls /opt/slapos.playbook | wc -l)
COUNT=$(ls /opt/slapos.playbook | wc -l)
if [[ ! $COUNT -gt 1 ]]
if [[ ! $COUNT -gt 1 ]]
then
then
...
@@ -38,10 +37,8 @@ then
...
@@ -38,10 +37,8 @@ then
exit 1
exit 1
fi
fi
# check if Ansible cron task was added
# check if Ansible script was added
if [[ ! -s "$ANSIBLE_CRON_FILE" ]]
ANSIBLE_RUN_SCRIPT="/usr/local/bin/vm-bootstrap-update"
then
[ -s "$ANSIBLE_RUN_SCRIPT" ] || exit 1
exit 1
fi
exit 0
exit 0
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment