This commit is contained in:
Marc Beninca 2024-07-21 22:14:43 +02:00
parent f22b370cc3
commit 44c2557a50
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

17
spcd.sh
View file

@ -447,13 +447,6 @@ Acquire::https::Verify-Peer False;
# #
spcd_split spcd_split
spcd_echo "SPCD_CA" spcd_echo "SPCD_CA"
# TODO move to Python
case "${SPCD_PM}" in
"${SPCD_PM_APK}" | "${SPCD_PM_APT}") SPCD_PKG_SSH="openssh-client" ;;
"${SPCD_PM_DNF}") SPCD_PKG_SSH="openssh-clients" ;;
"${SPCD_PM_PACMAN}") SPCD_PKG_SSH="openssh" ;;
*) ;;
esac
} }
spcd_list_working_directory() { spcd_list_working_directory() {
@ -606,12 +599,20 @@ spcd_install_python() {
# TODO move to Python # TODO move to Python
spcd_install_packages() { spcd_install_packages() {
#
spcd_step "Install GraphViz" spcd_step "Install GraphViz"
spcd_install_package "graphviz" spcd_install_package "graphviz"
#
spcd_step "Install Rsync" spcd_step "Install Rsync"
spcd_install_package "rsync" spcd_install_package "rsync"
#
spcd_step "Install SSH" spcd_step "Install SSH"
spcd_install_package "${SPCD_PKG_SSH}" case "${SPCD_PM}" in
"${SPCD_PM_APK}" | "${SPCD_PM_APT}") spcd_install_package "openssh-client" ;;
"${SPCD_PM_DNF}") spcd_install_package "openssh-clients" ;;
"${SPCD_PM_PACMAN}") spcd_install_package "openssh" ;;
*) ;;
esac
} }
spcd_clean_packages_cache() { spcd_clean_packages_cache() {