From: Chris Koeritz Date: Fri, 10 Nov 2017 23:12:10 +0000 (-0500) Subject: updated connect script to new init files X-Git-Tag: 2.140.93^2~8 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=48200bdbe91bc434c5085cf94fda306e27a4a780;p=feisty_meow.git updated connect script to new init files --- diff --git a/scripts/core/connect_feisty_meow.sh b/scripts/core/connect_feisty_meow.sh index 6b235793..25db1171 100644 --- a/scripts/core/connect_feisty_meow.sh +++ b/scripts/core/connect_feisty_meow.sh @@ -9,6 +9,8 @@ export WORKDIR="$( \cd "$(\dirname "$0")" && \pwd )" # obtain the script's work # normalize the path we want to cobble together. export FEISTY_MEOW_APEX="$( \cd "$WORKDIR/../.." && \pwd )" +echo calculated apex as $FEISTY_MEOW_APEX + if [ -f "$HOME/.bashrc" ] && grep -q "launch_feisty_meow.sh" "$HOME/.bashrc"; then # the stanza for loading feisty meow already seems to be present. echo "Feisty Meow already seems to be configured in '~/.bashrc'." @@ -17,7 +19,7 @@ else # this is the easy quick start script for normal folks. cat $FEISTY_MEOW_APEX/feisty_inits/dot.bashrc-normal-user | sed -e \ - "s? \$.*/scripts/core/launch_feisty? $FEISTY_MEOW_APEX/scripts/core/launch_feisty?" \ + "s?FEISTY_MEOW_APEX=\".*\"?FEISTY_MEOW_APEX=\"$FEISTY_MEOW_APEX\"?" \ >> "$HOME/.bashrc" echo "Feisty Meow is now configured in '~/.bashrc'." fi diff --git a/scripts/customize/fred/refred.sh b/scripts/customize/fred/refred.sh index 908e3bd5..088e8e3b 100644 --- a/scripts/customize/fred/refred.sh +++ b/scripts/customize/fred/refred.sh @@ -16,7 +16,7 @@ function refred() #echo arch addin now is: $arch_addin # iterate across the list of dirs we want fred to own and change their ownership. - for dirname in /home/fred /usr/local/fred /home/games $arch_addin; do + for dirname in /home/fred /opt/feistymeow.org /usr/local/fred /home/games $arch_addin; do if [ -d "$dirname" ]; then echo "refred on '$dirname'" sudo chown -R fred:fred $dirname