From: Chris Koeritz Date: Tue, 14 Nov 2017 23:55:30 +0000 (-0500) Subject: print out a hello.txt file if in home X-Git-Tag: 2.140.100^2~12^2~15 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=fdc5b94eba1a35628ef84e442b720cea0010f4d5;p=feisty_meow.git print out a hello.txt file if in home this is a way to convey info to the developer on cakelampvm.com at login time. --- diff --git a/production/sites/cakelampvm.com/hello.txt b/production/sites/cakelampvm.com/hello.txt new file mode 100644 index 00000000..14fed362 --- /dev/null +++ b/production/sites/cakelampvm.com/hello.txt @@ -0,0 +1,24 @@ + +Welcome to the CakePHP LAMP VM. + +Please refer to the built-in documentation available at: http://cakelampvm.com + +Some first steps to make this vm your own: + +1) change your password for the developer account. +(may eventually be automatically required) + +2) change your git configuration for user and email. this is how we've +configured it so far: + + # git config --global user.email "developer@cakelampvm.com" + # git config --global user.name "Developer J. Cakemo" + +if you're developing on a real project, you probably don't want the bogus +email and even more bogus name above attached to your commits. +Just run the commands again but with proper values. + +3) + + + diff --git a/scripts/core/launch_feisty_meow.sh b/scripts/core/launch_feisty_meow.sh index fc50921c..c6efbf5d 100644 --- a/scripts/core/launch_feisty_meow.sh +++ b/scripts/core/launch_feisty_meow.sh @@ -215,6 +215,20 @@ if [ "$NO_REPAIRS_NEEDED" == "true" ]; then unset FEISTY_MEOW_SHOW_LAUNCH_GREETING fi + # only run this hello file if the core aliases haven't been loaded already. this + # hopefully guarantees we show the info at most once in one shell continuum. + type CORE_ALIASES_LOADED &>/dev/null + if [ $? -ne 0 ]; then + # print out a personalized hello file if we find one. + if [ -f ~/hello.txt ]; then + echo + sep 28 + filedump ~/hello.txt + sep 28 + echo + fi + fi + # load the last bits we do here. source "$FEISTY_MEOW_LOADING_DOCK/fmc_ending_sentinel.sh"