hook-script.sh

This commit is contained in:
2025-02-13 01:24:21 -05:00
parent e631a1dffc
commit dcfd8c38cb
2 changed files with 4 additions and 26 deletions

View File

@@ -13,30 +13,9 @@
if ( $letsencryptStatus ne 'disabled' ) {
if ( $version == 8 ) {
$OUT .= <<'_EOF';
$OUT .= <<'_EOF';
if [ $1 = "deploy_cert" ]; then
KEY=$3
CERT=$4
CHAIN=$6
echo "Set up modSSL db keys"
/sbin/e-smith/db configuration setprop modSSL key $KEY
/sbin/e-smith/db configuration setprop modSSL crt $CERT
/sbin/e-smith/db configuration setprop modSSL CertificateChainFile $CHAIN
echo "Signal events"
/sbin/e-smith/signal-event domain-modify
/sbin/e-smith/signal-event email-update
/sbin/e-smith/signal-event ibay-modify
echo "All complete"
fi
_EOF
}
else {
$OUT .= <<'_EOF';
if [ $1 = "deploy_cert" ]; then
if [[ $1 == "deploy_cert" ]]; then
KEY=$3
CERT=$4
CHAIN=$6
@@ -49,6 +28,5 @@ _EOF
echo "All complete"
fi
_EOF
}
}
}