Fix hostname SSL toggle and PHP mode option
This commit is contained in:
+7
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user