acme.sh [Sun Mar 27 11:37:35 PDT 2022] Installing full chain to: /var/etc/acme-client/certs/$SomeUUIDLookingStringHere/fullchain.pem
===== Sun Mar 27 11:37:35 PDT 2022 =====test script called when configctl unifi upload is called===== ARGS ========== END ARGS ========== ENV =====PWD=/usr/local/opnsense/serviceHOME=/SHLVL=1REQUESTS_CA_BUNDLE=/etc/ssl/cert.pemPATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin_=/usr/bin/env===== END ENV========== END =====
root@OPNsense:/usr/local/opnsense/service/conf/actions.d # cat actions_unifi.conf [upload]command:/usr/local/opnsense/scripts/unifi/upload_and_restart.sh >> /usr/local/opnsense/scripts/unifi/test.logparameters:type:script_outputmessage:Installing certificate todescription:Script to upload certificate material to Unifi CloudKey
root@OPNsense:/usr/local/opnsense/scripts/unifi # cat upload_and_restart.sh#!/usr/bin/env bash#####echo "===== $(date) ====="# Testecho "hi, from the test script"# dump all cli argsecho "===== ARGS ====="echo "$@"echo "===== END ARGS ====="# dump envecho "===== ENV ====="envecho "===== END ENV====