#!/bin/sh
set -eu
printf 'JSR_PHP_POLICY_BEGIN\n'
hostname
for tool in patch flock base64 sha256sum curl; do command -v "$tool"; done
/usr/local/php7.3/bin/php --ini
/usr/local/php7.3/bin/php -i | grep -E '^(opcache.enable|opcache.validate_timestamps|opcache.revalidate_freq|Loaded Configuration File|Scan this dir)' || true
ps -eo args | grep '[p]hp-fpm: master process' || true
printf 'NODE_HTTPS\n'
curl --resolve jsr.yyangpt.cn:443:127.0.0.1 --max-time 10 --silent --output /dev/null --write-out 'https=%{http_code}\n' https://jsr.yyangpt.cn/ || true
printf 'JSR_PHP_POLICY_END\n'
