calmer revamping of hello
authorChris Koeritz <fred@gruntose.com>
Wed, 15 Nov 2017 02:21:56 +0000 (21:21 -0500)
committerChris Koeritz <fred@gruntose.com>
Wed, 15 Nov 2017 02:21:56 +0000 (21:21 -0500)
scripts/site_avenger/revamp_cakelampvm.sh

index dcc32be5eabd1647aec64f14bad98e670fb5ade7..25edca2ad69371d9c71e95d46742bb2be9149e24 100644 (file)
@@ -56,9 +56,13 @@ test_or_die "group perms on feisty meow"
 #
 ##############
 
-# copy the most recent hello file into place for the user.
-\cp -f "$FEISTY_MEOW_APEX/production/sites/cakelampvm.com/hello.txt" "$HOME"
-test_or_continue "copying hello file for user"
+# only update hello if they've still got the file there.  we don't want to
+# keep forcing our hellos at people.
+if [ -f "$HOME/hello.txt" ]; then
+  # copy the most recent hello file into place for the user.
+  \cp -f "$FEISTY_MEOW_APEX/production/sites/cakelampvm.com/hello.txt" "$HOME"
+  test_or_continue "copying hello file for user"
+fi
 
 ##############