Do not abort when DA certificate request fails
This commit is contained in:
+13
-2
@@ -133,6 +133,18 @@ install_local_plugins() {
|
||||
fi
|
||||
}
|
||||
|
||||
request_directadmin_certificate() {
|
||||
local da_hostname
|
||||
|
||||
da_hostname="$(hostname)"
|
||||
echo "Instalacja certyfikatu Let's Encrypt dla $da_hostname"
|
||||
|
||||
if ! "$DADIR/scripts/letsencrypt.sh" request_single "$da_hostname" 4096; then
|
||||
echo "Nie udalo sie wystawic certyfikatu DirectAdmin dla $da_hostname - pomijam ten krok."
|
||||
echo "Sprawdz hostname/servername w DirectAdmin oraz DNS i uruchom Let's Encrypt recznie po instalacji."
|
||||
fi
|
||||
}
|
||||
|
||||
update_daupdate_tools() {
|
||||
echo "update..."
|
||||
wget "$HTLINK/daupdate.sh" -O /sbin/daupdate
|
||||
@@ -290,8 +302,7 @@ echo "Instalacja Security headers"
|
||||
da build rewrite_confs
|
||||
cd $DAPOSTINSTALL_DIR
|
||||
|
||||
echo "Instalacja certyfikatu Let's Encrypt"
|
||||
$DADIR/scripts/letsencrypt.sh request_single `hostname` 4096
|
||||
request_directadmin_certificate
|
||||
|
||||
|
||||
echo -e "\e[96mMam wszystkie informacje - rozpoczynam konfiguracje\e[0m"
|
||||
|
||||
Reference in New Issue
Block a user