mirror of
https://github.com/itiligent/Easy-Guacamole-Installer.git
synced 2025-12-14 02:12:31 +00:00
add comments
This commit is contained in:
parent
7f233308cc
commit
e906a85266
1 changed files with 6 additions and 4 deletions
10
1-setup.sh
10
1-setup.sh
|
|
@ -157,7 +157,7 @@ SECURE_MYSQL="" # Apply mysql secure configuration tool (true/fa
|
||||||
MYSQL_HOST="" # leave blank for localhost default, only specify for remote servers
|
MYSQL_HOST="" # leave blank for localhost default, only specify for remote servers
|
||||||
MYSQL_PORT="" # If blank default is 3306
|
MYSQL_PORT="" # If blank default is 3306
|
||||||
GUAC_DB="" # If blank default is guacamole_db
|
GUAC_DB="" # If blank default is guacamole_db
|
||||||
GUAC_USER="" # if blank default is guacamole_user
|
GUAC_USER="" # If blank default is guacamole_user
|
||||||
GUAC_PWD="" # Should not be blank as this may break some aspects of install
|
GUAC_PWD="" # Should not be blank as this may break some aspects of install
|
||||||
MYSQL_ROOT_PWD="" # Should not be blank as this may break some aspects of install
|
MYSQL_ROOT_PWD="" # Should not be blank as this may break some aspects of install
|
||||||
INSTALL_TOTP="" # TOTP MFA extension (true/false)
|
INSTALL_TOTP="" # TOTP MFA extension (true/false)
|
||||||
|
|
@ -262,6 +262,7 @@ else
|
||||||
sudo systemctl restart systemd-hostnamed &>>${LOG_LOCATION}
|
sudo systemctl restart systemd-hostnamed &>>${LOG_LOCATION}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# We need a dns suffix to append to the hostname so as SSL can be available.
|
||||||
if [[ -z ${LOCAL_DOMAIN} ]]; then
|
if [[ -z ${LOCAL_DOMAIN} ]]; then
|
||||||
echo -e "${LYELLOW}Update Linux LOCAL DNS DOMAIN [Enter to keep: ${DOMAIN_SUFFIX}]${LGREEN}"
|
echo -e "${LYELLOW}Update Linux LOCAL DNS DOMAIN [Enter to keep: ${DOMAIN_SUFFIX}]${LGREEN}"
|
||||||
read -p " Enter FULL LOCAL DOMAIN NAME: " LOCAL_DOMAIN
|
read -p " Enter FULL LOCAL DOMAIN NAME: " LOCAL_DOMAIN
|
||||||
|
|
@ -413,7 +414,7 @@ if [ -z ${BACKUP_EMAIL} ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
# Prompt the user if they would like to install TOTP MFA
|
# Prompt the user to install TOTP MFA
|
||||||
echo -e "${LGREEN}Guacamole authentication extension options:${GREY}"
|
echo -e "${LGREEN}Guacamole authentication extension options:${GREY}"
|
||||||
if [[ -z "${INSTALL_TOTP}" ]] && [[ "${INSTALL_DUO}" != true ]]; then
|
if [[ -z "${INSTALL_TOTP}" ]] && [[ "${INSTALL_DUO}" != true ]]; then
|
||||||
echo -e -n "AUTH: Install TOTP? (choose 'n' if you want Duo) [y/N]? [default n]: "
|
echo -e -n "AUTH: Install TOTP? (choose 'n' if you want Duo) [y/N]? [default n]: "
|
||||||
|
|
@ -426,7 +427,7 @@ if [[ -z "${INSTALL_TOTP}" ]] && [[ "${INSTALL_DUO}" != true ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Prompt the user if they would like to install Duo MFA
|
# Prompt the user to install Duo MFA
|
||||||
if [[ -z "${INSTALL_DUO}" ]] && [[ "${INSTALL_TOTP}" != true ]]; then
|
if [[ -z "${INSTALL_DUO}" ]] && [[ "${INSTALL_TOTP}" != true ]]; then
|
||||||
echo -e -n "${GREY}AUTH: Install Duo? [y/N] [default n]: "
|
echo -e -n "${GREY}AUTH: Install Duo? [y/N] [default n]: "
|
||||||
read PROMPT
|
read PROMPT
|
||||||
|
|
@ -444,7 +445,7 @@ if [[ "${INSTALL_TOTP}" = true ]] && [[ "${INSTALL_DUO}" = true ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Prompt the user if they would like to install Duo MFA
|
# Prompt the user to install Duo MFA
|
||||||
if [[ -z "${INSTALL_LDAP}" ]]; then
|
if [[ -z "${INSTALL_LDAP}" ]]; then
|
||||||
echo -e -n "${GREY}AUTH: Install LDAP? [y/N] [default n]: "
|
echo -e -n "${GREY}AUTH: Install LDAP? [y/N] [default n]: "
|
||||||
read PROMPT
|
read PROMPT
|
||||||
|
|
@ -469,6 +470,7 @@ if [[ -z ${INSTALL_NGINX} ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Prompt to remove the trailing /guacamole dir from the default front end url
|
||||||
if [ "${INSTALL_NGINX}" = false ]; then
|
if [ "${INSTALL_NGINX}" = false ]; then
|
||||||
echo -e -n "FRONT END: Set Guacamole url to http root (omit /guacamole/ from url ) [Y/n]? [default y]: "
|
echo -e -n "FRONT END: Set Guacamole url to http root (omit /guacamole/ from url ) [Y/n]? [default y]: "
|
||||||
read PROMPT
|
read PROMPT
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue