Commit a823f13d authored by Jérome Perrin's avatar Jérome Perrin

standalone-shared: more python 3 fixes (execfile)

These crontabs were using execfile which has been removed on python 3.

Switch to `slapos console script.py` syntax which was introduced in
slapos 1.4.5
parent 5c3fa6eb
Pipeline #23271 failed with stage
in 0 seconds
......@@ -13,7 +13,7 @@
user=root
name="ERP5 Instance Request"
minute=*/5
job="/bin/echo 'execfile(\"/tmp/playbook-request-{{ playbook_name }}\")' | /usr/bin/slapos console > /dev/null 2>&1"
job="/usr/bin/slapos console '/tmp/playbook-request-{{ playbook_name }}' /dev/null 2>&1"
- name: create frontend request script
template: src={{ request_frontend_template }} dest=/tmp/playbook-request-frontend-{{ playbook_name }} mode=0700
......@@ -24,7 +24,7 @@
user=root
name="ERP5 Frontend Request"
minute=*/5
job="/bin/echo 'execfile(\"/tmp/playbook-request-frontend-{{ playbook_name }}\")' | /usr/bin/slapos console > /dev/null 2>&1"
job="/usr/bin/slapos console '/tmp/playbook-request-frontend-{{ playbook_name }}' /dev/null 2>&1"
- name: Create firewall script
template: src={{ firewall_setup_template }} dest=/tmp/playbook-firewall-setup-{{ playbook_name }} mode=0700
......
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