print out a hello.txt file if in home
authorChris Koeritz <fred@gruntose.com>
Tue, 14 Nov 2017 23:55:30 +0000 (18:55 -0500)
committerChris Koeritz <fred@gruntose.com>
Tue, 14 Nov 2017 23:55:30 +0000 (18:55 -0500)
this is a way to convey info to the developer on cakelampvm.com at login time.

production/sites/cakelampvm.com/hello.txt [new file with mode: 0644]
scripts/core/launch_feisty_meow.sh

diff --git a/production/sites/cakelampvm.com/hello.txt b/production/sites/cakelampvm.com/hello.txt
new file mode 100644 (file)
index 0000000..14fed36
--- /dev/null
@@ -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)
+
+
+
index fc50921c06c3adb2843ef01e9753e77df43f07e5..c6efbf5ddea775380ec7f516604e9722cd5789e2 100644 (file)
@@ -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"