Rearrange for tidier structure (#2212)

This commit is contained in:
clsty
2025-10-16 07:19:55 +08:00
parent 13065d7e5a
commit 8b493e091d
529 changed files with 165 additions and 138 deletions
+15 -9
View File
@@ -1,35 +1,41 @@
#!/usr/bin/env bash
cd "$(dirname "$0")"
export base="$(pwd)"
source ./scriptdata/lib/environment-variables.sh
source ./scriptdata/lib/functions.sh
source ./scriptdata/lib/package-installers.sh
source ./scriptdata/lib/options.sh
source ./sdata/lib/environment-variables.sh
source ./sdata/lib/functions.sh
source ./sdata/lib/package-installers.sh
source ./sdata/lib/options.sh
prevent_sudo_or_root
set -e
#####################################################################################
# For uninstall script
if [[ "${EXPERIMENTAL_UNINSTALL_SCRIPT}" = true ]]; then
source ./sdata/exp/uninstall.sh
exit
fi
#####################################################################################
# 0. Before we start
if [[ "${SKIP_ALLGREETING}" != true ]]; then
source ./scriptdata/step/0.install-greeting.sh
source ./sdata/step/0.install-greeting.sh
fi
#####################################################################################
if [[ "${SKIP_ALLDEPS}" != true ]]; then
printf "${STY_CYAN}[$0]: 1. Install dependencies\n${STY_RESET}"
source ./scriptdata/step/1.install-deps-selector.sh
source ./sdata/step/1.install-deps-selector.sh
fi
#####################################################################################
if [[ "${SKIP_ALLSETUPS}" != true ]]; then
printf "${STY_CYAN}[$0]: 2. Setup for permissions/services etc\n${STY_RESET}"
source ./scriptdata/step/2.install-setups-selector.sh
source ./sdata/step/2.install-setups-selector.sh
fi
#####################################################################################
if [[ "${SKIP_ALLFILES}" != true ]]; then
printf "${STY_CYAN}[$0]: 3. Copying config files\n${STY_RESET}"
if [[ "${EXPERIMENTAL_FILES_SCRIPT}" != true ]]; then
source ./scriptdata/step/3.install-files.sh
source ./sdata/step/3.install-files.sh
else
source ./scriptdata/step/3.install-files.experimental.sh
source ./sdata/step/3.install-files.experimental.sh
fi
fi