use substeps for packages
This commit is contained in:
parent
8ab46c1d59
commit
01cfa3db65
1 changed files with 10 additions and 9 deletions
19
spcd.sh
19
spcd.sh
|
@ -739,8 +739,9 @@ ${spcd_ipm__target}"
|
||||||
}
|
}
|
||||||
|
|
||||||
spcd_install_packages() {
|
spcd_install_packages() {
|
||||||
|
spcd_step "Install packages"
|
||||||
# epel
|
# epel
|
||||||
spcd_step "Install EPEL"
|
spcd_substep "Install EPEL"
|
||||||
case "${SPCD_OS_ID}" in
|
case "${SPCD_OS_ID}" in
|
||||||
"${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}")
|
"${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}")
|
||||||
spcd_install_package "epel-release"
|
spcd_install_package "epel-release"
|
||||||
|
@ -754,19 +755,19 @@ spcd_install_packages() {
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
# bats
|
# bats
|
||||||
spcd_step "Install BATS"
|
spcd_substep "Install BATS"
|
||||||
spcd_install_package "bats"
|
spcd_install_package "bats"
|
||||||
# graphviz
|
# graphviz
|
||||||
spcd_step "Install GraphViz"
|
spcd_substep "Install GraphViz"
|
||||||
spcd_install_package "graphviz"
|
spcd_install_package "graphviz"
|
||||||
# plantuml
|
# plantuml
|
||||||
spcd_step "Install PlantUML"
|
spcd_substep "Install PlantUML"
|
||||||
spcd_install_package "plantuml"
|
spcd_install_package "plantuml"
|
||||||
# rsync
|
# rsync
|
||||||
spcd_step "Install Rsync"
|
spcd_substep "Install Rsync"
|
||||||
spcd_install_package "rsync"
|
spcd_install_package "rsync"
|
||||||
# shell check
|
# shell check
|
||||||
spcd_step "Install ShellCheck"
|
spcd_substep "Install ShellCheck"
|
||||||
case "${SPCD_PM}" in
|
case "${SPCD_PM}" in
|
||||||
"${SPCD_PM_DNF}" | "${SPCD_PM_ZYPPER}")
|
"${SPCD_PM_DNF}" | "${SPCD_PM_ZYPPER}")
|
||||||
spcd_install_package "ShellCheck"
|
spcd_install_package "ShellCheck"
|
||||||
|
@ -774,7 +775,7 @@ spcd_install_packages() {
|
||||||
*) spcd_install_package "shellcheck" ;;
|
*) spcd_install_package "shellcheck" ;;
|
||||||
esac
|
esac
|
||||||
# shfmt
|
# shfmt
|
||||||
spcd_step "Install ShellFormat"
|
spcd_substep "Install ShellFormat"
|
||||||
case "${SPCD_OS_ID}" in
|
case "${SPCD_OS_ID}" in
|
||||||
"${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}") ;;
|
"${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}") ;;
|
||||||
"${SPCD_OS_DEBIAN}")
|
"${SPCD_OS_DEBIAN}")
|
||||||
|
@ -782,8 +783,8 @@ spcd_install_packages() {
|
||||||
;;
|
;;
|
||||||
*) spcd_install_package "shfmt" ;;
|
*) spcd_install_package "shfmt" ;;
|
||||||
esac
|
esac
|
||||||
# ssh
|
# openssh
|
||||||
spcd_step "Install SSH"
|
spcd_substep "Install OpenSSH"
|
||||||
case "${SPCD_PM}" in
|
case "${SPCD_PM}" in
|
||||||
"${SPCD_PM_APK}" | "${SPCD_PM_APT}")
|
"${SPCD_PM_APK}" | "${SPCD_PM_APT}")
|
||||||
spcd_install_package "openssh-client"
|
spcd_install_package "openssh-client"
|
||||||
|
|
Loading…
Reference in a new issue