Commit 18413bfa authored by Thomasa Balthazar's avatar Thomasa Balthazar

Get latest version of renew_cert and use --cron

parent 49e38e44
......@@ -28,11 +28,12 @@ if [[ "$version" == "0.2.1" ]]; then
version="0.2.2"
cd $RENEW_CERT_PATH
sudo ve/bin/python renew_from_cube.py
git pull origin master
sudo ve/bin/python renew_from_cube.py --cron
cat <<EOF > /etc/cron.daily/neutrinet-renew-cert
#!/bin/bash
cd $RENEW_CERT_PATH && ve/bin/python renew_from_cube.py
cd $RENEW_CERT_PATH && git pull origin master && ve/bin/python renew_from_cube.py --cron
EOF
chmod 0755 /etc/cron.daily/neutrinet-renew-cert
fi
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