projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6f4f860
)
updated to be less feisty meow dependent
author
Chris Koeritz
<fred@gruntose.com>
Thu, 16 Jun 2022 19:52:06 +0000
(15:52 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Thu, 16 Jun 2022 19:52:06 +0000
(15:52 -0400)
scripts/core/prep_feisty_host.sh
patch
|
blob
|
history
diff --git
a/scripts/core/prep_feisty_host.sh
b/scripts/core/prep_feisty_host.sh
index 364cc061a4211441a560301242961d625d29be06..cb8ce9c083250d249c0de030e0d57109e0c03dfa 100644
(file)
--- a/
scripts/core/prep_feisty_host.sh
+++ b/
scripts/core/prep_feisty_host.sh
@@
-8,17
+8,44
@@
# bash
# anything else?
# bash
# anything else?
+#weird approach here man.
+# why are we assuming any part of feisty meow is set up yet?
+# the dependencies that the codebase has are why we're installing things below.
+# so:
+# + intuit the feisty meow location based on relative dir placement.
+# + reduce checks to barest presence ones.
+# + drop any requirements on feisty functions that might require the
+# very code we're installing.
+
+
####
####
-# something borrowed...
+# helper scripts...
+
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..."
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
+
#
error_sound
exit 1
fi
}
exit 1
fi
}
+function whichable()
+{
+ to_find="$1";
+ shift;
+ local WHICHER="$(/usr/bin/which which 2>/dev/null)";
+ if [ $? -ne 0 ]; then
+ echo;
+ return 2;
+ fi;
+ local sporkenz;
+ sporkenz=$($WHICHER "$to_find" 2>/dev/null);
+ local err=$?;
+ echo $sporkenz;
+ return $err
+}
+
####
function apt_cyg_finder()
####
function apt_cyg_finder()
@@
-48,23
+75,30
@@
Please follow the install instructions at:
# e.g.?? $ bash /opt/feistymeow.org/feisty_meow/scripts/core/reconfigure_feisty_meow.sh
# hmmm: above ALSO ESSENTIAL TO GET RIGHT!
# e.g.?? $ bash /opt/feistymeow.org/feisty_meow/scripts/core/reconfigure_feisty_meow.sh
# hmmm: above ALSO ESSENTIAL TO GET RIGHT!
-PHASE_MESSAGE="Checking integrity of Feisty Meow subsystem"
-if [ -z $FEISTY_MEOW_APEX ]; then
+BASE_PHASE_MESSAGE="Feisty Meow subsystems integrity check: "
+
+# is our main variable set?
+PHASE_MESSAGE="$BASE_PHASE_MESSAGE presence of FEISTY_MEOW_APEX variable"
+if [ -z "$FEISTY_MEOW_APEX" ]; then
false; exit_on_error $PHASE_MESSAGE
fi
# simple brute force check. can we go there?
false; exit_on_error $PHASE_MESSAGE
fi
# simple brute force check. can we go there?
+PHASE_MESSAGE="$BASE_PHASE_MESSAGE check on directory $FEISTY_MEOW_APEX"
pushd $FEISTY_MEOW_APEX &> /dev/null
pushd $FEISTY_MEOW_APEX &> /dev/null
-exit_on_error
locating feisty meow top-level folder
+exit_on_error
$PHASE_MESSAGE
popd &> /dev/null
# now ask feisty if it's there; should work as long as our scripts are in place.
popd &> /dev/null
# now ask feisty if it's there; should work as long as our scripts are in place.
-bash $FEISTY_MEOW_APEX/scripts/core/is_feisty_up.sh
-exit_on_error $PHASE_MESSAGE
+#PHASE_MESSAGE="$BASE_PHASE_MESSAGE inquiry is_feisty_up"
+#bash $FEISTY_MEOW_APEX/scripts/core/is_feisty_up.sh
+#exit_on_error $PHASE_MESSAGE
# standard load-up.
#hmmm: this will currently fail if reconfigure has never been called.
# standard load-up.
#hmmm: this will currently fail if reconfigure has never been called.
-source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
+#NO NO NO. source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
+# we are preparing to get feisty running; how can we use feisty during
+# that process? so bad.
####
####