generated from smedev/Template-for-SMEServer-Core-Package
hook-script.sh
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user