makecache
This commit is contained in:
parent
bf32e90fe5
commit
5f661ba6db
1 changed files with 15 additions and 3 deletions
18
cd.sh
18
cd.sh
|
@ -41,12 +41,11 @@ cd_set_environment () {
|
||||||
CD_PYTHON_COMMAND="python3"
|
CD_PYTHON_COMMAND="python3"
|
||||||
CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages"
|
CD_PYTHON_PACKAGES="/usr/lib/python3/dist-packages"
|
||||||
case "${CD_OS_VERSION}" in
|
case "${CD_OS_VERSION}" in
|
||||||
"bookworm")
|
"bookworm") echo "TODO" ;;
|
||||||
echo "TODO"
|
|
||||||
;;
|
|
||||||
*) cd_error_os "CD_OS_VERSION=" ;;
|
*) cd_error_os "CD_OS_VERSION=" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
"alma") echo "TODO" ;;
|
||||||
*) cd_error_os "CD_OS_NAME=" ;;
|
*) cd_error_os "CD_OS_NAME=" ;;
|
||||||
esac
|
esac
|
||||||
# ci / github
|
# ci / github
|
||||||
|
@ -117,6 +116,7 @@ deb https://deb.debian.org/debian-security bookworm-security main
|
||||||
"
|
"
|
||||||
cd_cat "/etc/apt/sources.list"
|
cd_cat "/etc/apt/sources.list"
|
||||||
;;
|
;;
|
||||||
|
"alma") echo "TODO" ;;
|
||||||
*) cd_error_os "cd_set_packages_repositories" ;;
|
*) cd_error_os "cd_set_packages_repositories" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -135,6 +135,7 @@ Dir::Etc::SourceParts \"\";
|
||||||
"
|
"
|
||||||
cd_cat "/etc/apt/apt.conf.d/apt.conf"
|
cd_cat "/etc/apt/apt.conf.d/apt.conf"
|
||||||
;;
|
;;
|
||||||
|
"alma") echo "TODO" ;;
|
||||||
*) cd_error_os "cd_set_packages_configuration" ;;
|
*) cd_error_os "cd_set_packages_configuration" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -148,6 +149,7 @@ Acquire::https::Verify-Peer False;
|
||||||
"
|
"
|
||||||
cd_cat "/etc/apt/apt.conf.d/https"
|
cd_cat "/etc/apt/apt.conf.d/https"
|
||||||
;;
|
;;
|
||||||
|
"alma") echo "TODO" ;;
|
||||||
*) cd_error_os "cd_set_https_verification_off" ;;
|
*) cd_error_os "cd_set_https_verification_off" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -156,6 +158,7 @@ cd_update_packages_catalog () {
|
||||||
cd_step "Update packages catalog"
|
cd_step "Update packages catalog"
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
"debian") apt-get update || exit ;;
|
"debian") apt-get update || exit ;;
|
||||||
|
"alma") dnf makecache || exit ;;
|
||||||
*) cd_error_os "cd_update_packages_catalog" ;;
|
*) cd_error_os "cd_update_packages_catalog" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -164,6 +167,7 @@ cd_install_packages_tools () {
|
||||||
cd_step "Install packages tools"
|
cd_step "Install packages tools"
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
"debian") cd_install_package "apt-utils" ;;
|
"debian") cd_install_package "apt-utils" ;;
|
||||||
|
"alma") echo "TODO" ;;
|
||||||
*) cd_error_os "cd_install_packages_tools" ;;
|
*) cd_error_os "cd_install_packages_tools" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -172,6 +176,7 @@ cd_install_ca () {
|
||||||
cd_step "Install CA"
|
cd_step "Install CA"
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
"debian") cd_install_package "ca-certificates" ;;
|
"debian") cd_install_package "ca-certificates" ;;
|
||||||
|
"alma") echo "TODO" ;;
|
||||||
*) cd_error_os "cd_install_ca" ;;
|
*) cd_error_os "cd_install_ca" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -181,6 +186,7 @@ local target
|
||||||
cd_step "Copy CA"
|
cd_step "Copy CA"
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
"debian") target="/usr/local/share/ca-certificates" ;;
|
"debian") target="/usr/local/share/ca-certificates" ;;
|
||||||
|
"alma") echo "TODO" ;;
|
||||||
*) cd_error_os "cd_copy_ca" ;;
|
*) cd_error_os "cd_copy_ca" ;;
|
||||||
esac
|
esac
|
||||||
# TODO copy
|
# TODO copy
|
||||||
|
@ -190,6 +196,7 @@ cd_update_ca () {
|
||||||
cd_step "Update CA"
|
cd_step "Update CA"
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
"debian") update-ca-certificates || exit ;;
|
"debian") update-ca-certificates || exit ;;
|
||||||
|
"alma") echo "TODO" ;;
|
||||||
*) cd_error_os "cd_update_ca" ;;
|
*) cd_error_os "cd_update_ca" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -198,6 +205,7 @@ cd_set_https_verification_on () {
|
||||||
cd_step "Set HTTPS verification on"
|
cd_step "Set HTTPS verification on"
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
"debian") cd_rm "/etc/apt/apt.conf.d/https" ;;
|
"debian") cd_rm "/etc/apt/apt.conf.d/https" ;;
|
||||||
|
"alma") echo "TODO" ;;
|
||||||
*) cd_error_os "cd_set_https_verification_on" ;;
|
*) cd_error_os "cd_set_https_verification_on" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -206,6 +214,7 @@ cd_upgrade_packages () {
|
||||||
cd_step "Upgrade packages"
|
cd_step "Upgrade packages"
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
"debian") apt-get upgrade --yes || exit ;;
|
"debian") apt-get upgrade --yes || exit ;;
|
||||||
|
"alma") echo "TODO" ;;
|
||||||
*) cd_error_os "cd_upgrade_packages" ;;
|
*) cd_error_os "cd_upgrade_packages" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -214,6 +223,7 @@ cd_install_git () {
|
||||||
cd_step "Install Git"
|
cd_step "Install Git"
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
"debian") cd_install_package "git" ;;
|
"debian") cd_install_package "git" ;;
|
||||||
|
"alma") echo "TODO" ;;
|
||||||
*) cd_error_os "cd_install_git" ;;
|
*) cd_error_os "cd_install_git" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -222,6 +232,7 @@ cd_install_python () {
|
||||||
cd_step "Install Python"
|
cd_step "Install Python"
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
"debian") cd_install_package "python3" ;;
|
"debian") cd_install_package "python3" ;;
|
||||||
|
"alma") echo "TODO" ;;
|
||||||
*) cd_error_os "cd_install_python" ;;
|
*) cd_error_os "cd_install_python" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
@ -230,6 +241,7 @@ cd_clean_packages_cache () {
|
||||||
cd_step "Clean packages cache"
|
cd_step "Clean packages cache"
|
||||||
case "${CD_OS_NAME}" in
|
case "${CD_OS_NAME}" in
|
||||||
"debian") apt-get clean || exit ;;
|
"debian") apt-get clean || exit ;;
|
||||||
|
"alma") echo "TODO" ;;
|
||||||
*) cd_error_os "cd_clean_packages_cache" ;;
|
*) cd_error_os "cd_clean_packages_cache" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue