We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a93d577 commit b69c0f9Copy full SHA for b69c0f9
1 file changed
scripts/aws/entrypoint.sh
@@ -51,7 +51,7 @@ sync_enclave_time_with_offset_once || true
51
install_time_sync_cron() {
52
mkdir -p /etc/cron.d
53
cat > /etc/cron.d/uid-time-sync <<EOF
54
-*/5 * * * * root current_time=\$(curl -sSf "${TIME_SYNC_URL}") && date -u -s "\${current_time}" && echo "Time sync: updated enclave time to \${current_time}"
+*/5 * * * * root current_time=\$(curl -sSf -x "${TIME_SYNC_PROXY}" "${TIME_SYNC_URL}") && date -u -s "\${current_time}" && echo "Time sync: updated enclave time to \${current_time}" >>/proc/1/fd/1 2>>/proc/1/fd/2
55
EOF
56
chmod 0644 /etc/cron.d/uid-time-sync
57
cron
0 commit comments