refactor(tools): move module generation tooling into setup/tools/

sync-modules.sh and generate-modules.sh are developer tooling, not part of
the installer runtime — same rationale as freeipa-image.sh. Update SETUP_DIR
paths in both scripts to resolve correctly from the new location.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
Amir Alexander Abdelbaki 2026-06-26 13:31:12 +02:00
parent 5647852ee6
commit 8e9c460713
2 changed files with 8 additions and 6 deletions

View File

@ -11,10 +11,11 @@
set -euo pipefail set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CONF="$SCRIPT_DIR/modules.conf" SETUP_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
TUI="$SCRIPT_DIR/tui-install.sh" CONF="$SETUP_DIR/modules.conf"
AF="$SCRIPT_DIR/generate-answerfile.sh" TUI="$SETUP_DIR/tui-install.sh"
DOCS="$SCRIPT_DIR/../docs/md/modules.md" AF="$SETUP_DIR/generate-answerfile.sh"
DOCS="$SETUP_DIR/../docs/md/modules.md"
DRY_RUN=false DRY_RUN=false
[[ "${1:-}" == "--dry-run" ]] && DRY_RUN=true [[ "${1:-}" == "--dry-run" ]] && DRY_RUN=true

View File

@ -4,8 +4,9 @@
set -euo pipefail set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CONF="$SCRIPT_DIR/modules.conf" SETUP_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
APPS="$SCRIPT_DIR/modules/optional-Modules/apps" CONF="$SETUP_DIR/modules.conf"
APPS="$SETUP_DIR/modules/optional-Modules/apps"
# Read all existing IDs from modules.conf into a set. # Read all existing IDs from modules.conf into a set.
declare -A known declare -A known