From 33ad8c6d94c64ecf624cab42a8b2a08ba3534292 Mon Sep 17 00:00:00 2001 From: "Fred T. Hamster" Date: Tue, 10 Dec 2024 11:57:13 -0500 Subject: [PATCH] added openssh-server as required OS pack --- scripts/core/prep_feisty_host.sh | 42 ++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/scripts/core/prep_feisty_host.sh b/scripts/core/prep_feisty_host.sh index ef44112b..fbb37cb2 100644 --- a/scripts/core/prep_feisty_host.sh +++ b/scripts/core/prep_feisty_host.sh @@ -3,14 +3,19 @@ # this is the feisty meow host preparation script. it installs all the packages required to run and build feisty meow scripts and applications. # preconditions and dependencies--this script itself depends on: -# feisty meow -# bash -# anything else? +# 1) feisty meow, which it is part of, +# 2) bash +# ...anything else? -# note that this list of items is never totally complete, since feisty meow keeps expanding and mutating. for example, we now have a few -# python scripts starting to sneak in. there are assuredly lots of python packages we should be installing in here now, but we aren't yet. -# this is a best effort script, to at least get feisty meow able to run its core scripts and to build. although it's always appreciated -# when things we rely on get installed too... +#### + +# note that this list of packages to install below is never totally complete, +# since feisty meow keeps expanding and mutating. for example, we now have a +# few python scripts starting to sneak in. there are assuredly lots of python +# packages we should be installing in here now, but we aren't yet. this is a +# best effort script, to at least get feisty meow able to run its core scripts +# and to build. although it's always appreciated when things we rely on get +# installed too... #### @@ -20,7 +25,6 @@ THIS_TOOL_NAME="$(basename "$0")" # set up the feisty_meow dir. pushd "$CORE_SCRIPTS_DIR/../.." &>/dev/null -#source "$CORE_SCRIPTS_DIR/functions.sh" echo originating folder is $ORIGINATING_FOLDER export FEISTY_MEOW_APEX="$(/bin/pwd)" echo feisty now apex is FEISTY_MEOW_APEX=$FEISTY_MEOW_APEX @@ -40,7 +44,6 @@ export IS_DARWIN="$(echo $OSTYPE | grep -i darwin)" function exit_on_error() { if [ $? -ne 0 ]; then echo -e "\n\nan important action failed and this script will stop:\n\n$*\n\n*** Exiting script..." -# error_sound exit 1 fi } @@ -188,7 +191,26 @@ PAX=(noop) #### -# first we install the low-level crucial bits for scripts to work... +# first, make sure the OS itself is prepared for us. + +PHASE_MESSAGE="installing crucial OS packages" + +if [ "$opsystem_here" == "debianesque" ]; then + PAX=(openssh-server ) +elif [ "$opsystem_here" == "redhatty" ]; then + PAX=(openssh-server ) +elif [ "$opsystem_here" == "macos" ]; then + PAX=(openssh-server ) +elif [ "$opsystem_here" == "windoze" ]; then + PAX=(openssh-server ) +fi + +install_system_package "${PAX[@]}" +exit_on_error $PHASE_MESSAGE + +#### + +# next, we install the low-level crucial bits for scripts to work... PHASE_MESSAGE="installing script modules" -- 2.34.1