detect cd_os_id
This commit is contained in:
parent
231c841105
commit
c6846165aa
1 changed files with 8 additions and 3 deletions
11
cd.sh
11
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"
|
||||
|
|
Loading…
Reference in a new issue