Run client.py instead of fetch_and_update on the client
This commit is contained in:
14
client/run
14
client/run
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user