From fdc5b94eba1a35628ef84e442b720cea0010f4d5 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 14 Nov 2017 18:55:30 -0500 Subject: [PATCH] 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. --- production/sites/cakelampvm.com/hello.txt | 24 +++++++++++++++++++++++ scripts/core/launch_feisty_meow.sh | 14 +++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 production/sites/cakelampvm.com/hello.txt 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" -- 2.34.1