diff --git a/scripts/scheduler/entrypoint.sh b/scripts/scheduler/entrypoint.sh index 18c2f98..1a83026 100644 --- a/scripts/scheduler/entrypoint.sh +++ b/scripts/scheduler/entrypoint.sh @@ -594,16 +594,18 @@ execute_task() { #fi; JSON_TARGET=$(echo '{ "DATE": "'$DATE'", "INSTALL_STATUS": "'$INSTALL_STATUS'" }' | jq -r . | base64 -w0) - elif [ "$TASK_NAME" == "letsencrypt" ]; then + elif [ "$TASK_NAME" == "request_letsencrypt" ]; then DOMAINS=$(echo $B64_JSON | base64 -d | jq -r 'keys[]') for DOMAIN in $(echo $DOMAINS); do REQUEST=$(echo $B64_JSON | base64 -d | jq -r ".[\"$DOMAIN\"].status") if [ "$REQUEST" == "requested" ]; then echo "New certificate for $DOMAIN is requested." + mkdir -p /etc/system/data/ssl/keys/$DOMAIN touch /etc/system/data/ssl/keys/$DOMAIN/new_certificate fi done + JSON_TARGET=$B64_JSON; elif [ "$TASK_NAME" == "system" ]; then #SYSTEM_LIST="core-dns.json cron.json domain-local-backend.json firewall-letsencrypt.json firewall-local-backend.json firewall-localloadbalancer-dns.json firewall-localloadbalancer-to-smarthostbackend.json firewall-smarthost-backend-dns.json firewall-smarthost-loadbalancer-dns.json firewall-smarthost-to-backend.json firewall-smarthostloadbalancer-from-publicbackend.json letsencrypt.json local-backend.json local-proxy.json service-framework.json smarthost-proxy-scheduler.json smarthost-proxy.json"