#!/usr/bin/env -S bash -eu # # Copyright 2022 -- Evilham # # This file is part of DD # # DD is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or (at your # option) any later version. # # DD is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more # details. # # You should have received a copy of the GNU Affero General Public License # along with DD. If not, see . # # SPDX-License-Identifier: AGPL-3.0-or-later # General settings, dir, repo, branch. You usually do not want these changed. DDSRC_DIR="${DDSRC_DIR:-/opt/src/DD}" DDREPO_URL="${DDREPO_URL:-https://gitlab.com/DD-workspace/DD}" DDBRANCH="${DDBRANCH:-main}" DDLOG="${DDLOG:-dd-install.log}" help() { cat <&1 | tee -a "${DDLOG}" # Install all prerequisites ./dd-ctl prerequisites 2>&1 | tee -a "${DDLOG}" # Fix insecure passwords ./dd-ctl securize 2>&1 | tee -a "${DDLOG}" # Perform installation as per further instructions ./dd-ctl all 2>&1 | tee -a "${DDLOG}" # Wait a tad to work around dd-sso issues echo "Waiting a few seconds for things to settle..." sleep 30 # Address timing dd-sso issue by restarting the containers ./dd-ctl down ./dd-ctl up ## Ensure SAML is set up ./dd-ctl saml --no-up # Proceed further with manual steps cat <