Fix hostname SSL toggle and PHP mode option

This commit is contained in:
Marek Miklewicz
2026-06-13 21:25:45 +02:00
parent 678cbc9066
commit c0261418c8
2 changed files with 15 additions and 4 deletions
+7 -3
View File
@@ -16,6 +16,7 @@ DEFAULT_NS1=dns3.hitme.net.pl
DEFAULT_NS2=dns4.hitme.net.pl
SSH_PORT=10022
REDIS_VERSION=8
HOSTNAME_SSL=1
SETUP_TXT="$DADIR/conf/setup.txt"
PLUGIN_ARCHIVE_DIR="$DAPOSTINSTALL_DIR/plugins"
BRANDING_DIR="$DAPOSTINSTALL_DIR/branding"
@@ -50,11 +51,9 @@ configure_custombuild_php() {
release_var="php${idx}_release"
release="${!release_var}"
da build set "php${idx}_release" "$release"
if [[ "$release" != "no" ]]; then
da build set "php${idx}_mode" "php-fpm"
fi
done
da build set "php1_mode" "php-fpm"
da build php
da build rewrite_confs
}
@@ -134,6 +133,11 @@ install_local_plugins() {
}
request_directadmin_certificate() {
if [[ "$HOSTNAME_SSL" == "0" ]]; then
echo "HOSTNAME_SSL=0 - pomijam certyfikat Let's Encrypt dla hostname DirectAdmin"
return 0
fi
echo "Instalacja certyfikatu Let's Encrypt dla hostname DirectAdmin"
if ! "$DADIR/scripts/letsencrypt.sh" server_cert; then