Took out fail for DOMAIN ARRAY setup

This commit is contained in:
root 2025-01-09 14:31:41 +00:00
parent 9e794bbfcf
commit c80ec716ec

View File

@ -48,8 +48,6 @@ get_config() {
DOMAIN_FIRST=${DOMAIN_ARRAY[0]} DOMAIN_FIRST=${DOMAIN_ARRAY[0]}
DOMAIN_MIDDLE=${DOMAIN_ARRAY[1]} DOMAIN_MIDDLE=${DOMAIN_ARRAY[1]}
DOMAIN_LAST=${DOMAIN_ARRAY[2]} DOMAIN_LAST=${DOMAIN_ARRAY[2]}
else
failcheck "$DOMAIN is not a valid domain.com or sub.domain.com"
fi fi
} }
@ -81,26 +79,6 @@ fi
# Configure docker private network # Configure docker private network
config_network config_network
# Setup arrays to what bundle
#if [ "$BUNDLE" = "good" ]; then
# CORE_APPS=("pdnsmysql" "pdns" "pdnsadmin" "traefik" "postgresql" "ldap" "mail")
# EXTRA_APPS=("authelia" "collabora" "nextcloud" "autodiscover" "panel" "vaultwarden" "dashboard" "roundcube" "wordpress" "wireguard")
#elif [ "$BUNDLE" = "better" ]; then
# CORE_APPS=("pdnsmysql" "pdns" "pdnsadmin" "traefik" "postgresql" "ldap" "mail")
# EXTRA_APPS=("authelia" "collabora" "nextcloud" "autodiscover" "panel" "vaultwarden" "dashboard" "roundcube" "wordpress" "wireguard" "matrix" "element" "jitsi" "espocrm")
#elif [ "$BUNDLE" = "best" ]; then
# CORE_APPS=("pdnsmysql" "pdns" "pdnsadmin" "traefik" "postgresql" "ldap" "mail")
# EXTRA_APPS=("authelia" "collabora" "nextcloud" "autodiscover" "panel" "vaultwarden" "dashboard" "roundcube" "wordpress" "wireguard" "matrix" "element" "jitsi" "espocrm" "baserow" "bookstack" "gitea" "freescout")
#else
# CORE_APPS=("pdnsmysql" "pdns" "pdnsadmin" "traefik" "postgresql" "ldap" "mail")
# EXTRA_APPS=("authelia" "collabora" "nextcloud" "autodiscover" "panel" "vaultwarden" "dashboard" "roundcube" "wordpress" "wireguard" "matrix" "element" "jitsi" "espocrm" "baserow" "bookstack" "gitea" "freescout")
#fi
# Get apps that need to be installed and create array for it
#IFS=$'\n' read -r -d '' -a CORE_APPS_LIST < <(awk -F',' '{ for( i=1; i<=NF; i++ ) print $i }' <<<"$CORE_APPS")
#IFS=$'\n' read -r -d '' -a EXTRA_APPS_LIST < <(awk -F',' '{ for( i=1; i<=NF; i++ ) print $i }' <<<"$EXTRA_APPS")
#SERVICES=("${CORE_APPS_LIST[@]}" "${EXTRA_APPS_LIST[@]}")
# Create a swap file if we're in a low RAM configuration # Create a swap file if we're in a low RAM configuration
MEM=$(LC_ALL=C free |grep ^Mem: |awk '{ print $2; }') MEM=$(LC_ALL=C free |grep ^Mem: |awk '{ print $2; }')
if [ "$MEM" -le 2097152 ]; then if [ "$MEM" -le 2097152 ]; then
@ -144,18 +122,5 @@ done
add_cron add_cron
run_finishtasks run_finishtasks
# Print out federated environment details
#echo -ne "\n\n"
#if [ "$BUNDLE" = "starter" ]; then
# create_email_withoutvpn
#elif [ "$BUNDLE" = "team" ]; then
# create_email_withoutvpn
#elif [ "$BUNDLE" = "creator" ]; then
# create_email_withoutvpn
#elif [ "$BUNDLE" = "enterprise" ]; then
# create_email_withvpn
#else
# create_email_withvpn
#fi
echo -ne "\n\n" echo -ne "\n\n"
exit 0 exit 0