generated from smedev/Template-for-SMEServer-Core-Package
* Wed Feb 12 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0-2.sme
- move smanager panel in package [SME: 12916] - add Requires - add templates from smeserver-letsencrypt - use /var/www/html/.well-known/acme-challenge
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{
|
||||
use strict;
|
||||
use warnings;
|
||||
use esmith::ConfigDB;
|
||||
|
||||
my $configDB = esmith::ConfigDB->open_ro or die("can't open Config DB");
|
||||
|
||||
my $letsencryptStatus = $configDB->get_prop( 'letsencrypt', 'status' ) || 'disabled';
|
||||
|
||||
if ( $letsencryptStatus ne 'disabled' ) {
|
||||
|
||||
$OUT .= "#!/bin/bash\n";
|
||||
$OUT .= "# deploy_cert hook will set config database entries for the cert files\n";
|
||||
$OUT .= "# and restart appropriate services\n";
|
||||
$OUT .= "#\n";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user