Unverified Commit 4d8c42a4 authored by Thomas Balthazar's avatar Thomas Balthazar Committed by GitHub

Merge pull request #3 from Neutrinet/cron

Upgrade to 0.2.2
parents 7b649520 426b6d55
......@@ -15,12 +15,28 @@ fi
# 0.2 -> 0.2.1
if [[ "$version" == "0.2" ]]; then
get_out_of_testing
sudo yunohost app setting neutrinet version -v "0.2.1"
version="0.2.1"
cd /opt/neutrinet/renew_cert
cd $RENEW_CERT_PATH
sudo ve/bin/python renew_from_cube.py
fi
# 0.2.1 -> 0.2.2
if [[ "$version" == "0.2.1" ]]; then
sudo yunohost app setting neutrinet version -v "0.2.2"
version="0.2.2"
cd $RENEW_CERT_PATH
sudo git fetch
sudo git checkout 01b9306e51e74a2dac5b06f3fb6c29a0fb2fe755
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 --cron
EOF
sudo chown root:root /etc/cron.daily/neutrinet-renew-cert
sudo 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