Run client.py instead of fetch_and_update on the client

This commit is contained in:
Ian Gulliver
2016-05-09 22:58:25 +00:00
parent a1a1a4e822
commit 5d30642816
2 changed files with 22 additions and 9 deletions

View File

@@ -4,10 +4,12 @@ set -ex
exec 2>&1
# Mitigate crash looping
sleep 60
BASE=$(dirname $0)
while :; do
./fetch_and_update.sh
sleep 3600
done
FLAGS="$(cat /icon/config/client.flags)"
HTTPS_CLIENT_KEY="/systemid/$(hostname).www.key.pem"
HTTPS_CLIENT_CERT="/systemid/$(hostname).www.cert.pem"
HTTPS_CA_CERT="/icon/config/ca.www.cert.pem"
exec "${BASE}/client.py" --https-ca-cert="${HTTPS_CA_CERT}" --https-client-cert="${HTTPS_CLIENT_CERT}" --https-client-key="${HTTPS_CLIENT_KEY}" ${FLAGS}