Atlas is operational
This is the temporary Atlas status site. Application routing has not been configured yet.
#!/usr/bin/env bash set -Eeuo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" INSTALL_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)" REPO_ROOT="$(cd "${INSTALL_DIR}/.." && pwd)" # shellcheck source=install/lib/common.sh source "${INSTALL_DIR}/lib/common.sh" # shellcheck source=install/lib/logging.sh source "${INSTALL_DIR}/lib/logging.sh" # shellcheck source=install/lib/packages.sh source "${INSTALL_DIR}/lib/packages.sh" atlas_set_script_name "40-nginx.sh" atlas_install_error_trap ATLAS_SITE_ROOT="/var/www/atlas" ATLAS_SITE_CONF_SOURCE="${REPO_ROOT}/config/nginx/atlas-default.conf" ATLAS_SITE_CONF_DEST="/etc/nginx/sites-available/atlas-default.conf" ATLAS_SITE_LINK="/etc/nginx/sites-enabled/atlas-default.conf" NGINX_DEFAULT_LINK="/etc/nginx/sites-enabled/default" NGINX_BACKUP_DIR="/etc/nginx/atlas-backups" usage() { cat <<'USAGE' Usage: install/phases/40-nginx.sh [options] Install nginx from Ubuntu repositories and deploy the temporary Atlas default HTTP status site. This does not configure HTTPS or PlotDirector proxying. Options: --help Show this help text. --version Show script/framework version. --dry-run Show intended actions without making changes. --verbose Print additional diagnostic output. USAGE } while [[ "$#" -gt 0 ]]; do case "$1" in --help) usage exit "${ATLAS_EXIT_OK}" ;; --version) atlas_print_version exit "${ATLAS_EXIT_OK}" ;; --dry-run) atlas_enable_dry_run ;; --verbose) atlas_enable_verbose ;; *) atlas_usage_error "Unknown option: $1" exit "${ATLAS_EXIT_USAGE}" ;; esac shift done install_nginx() { if atlas_package_installed nginx; then atlas_log_ok "nginx is already installed" else atlas_install_packages nginx fi } write_site_content() { local tmp_file tmp_file="$(mktemp)" cat >"$tmp_file" <<'HTML'
This is the temporary Atlas status site. Application routing has not been configured yet.