diff --git a/cd.sh b/cd.sh index 57ddc83..0e50c6a 100644 --- a/cd.sh +++ b/cd.sh @@ -12,7 +12,7 @@ rwx \ # main cd_main () { - cd_set_environment + cd_set_environment_variables cd_set_dns_resolving cd_set_packages_repositories cd_set_packages_configuration @@ -34,9 +34,14 @@ cd_main () { # steps -cd_set_environment () { +cd_set_environment_variables () { local variable - cd_step "Set environment" + cd_step "Set environment variables" + # + case "$(cd_grep_os ID)" in + "debian") CD_OS_ID="${CD_OS_DEBIAN}" ;; + "almalinux") CD_OS_ID="${CD_OS_ALMA}" ;; + esac # CD_CA_PACKAGE="ca-certificates" CD_DNS_FILE="/etc/resolv.conf"