From 9a800bab09cbf2261adee206be753d8551e868e3 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 14 Nov 2017 21:21:56 -0500 Subject: [PATCH] calmer revamping of hello --- scripts/site_avenger/revamp_cakelampvm.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/site_avenger/revamp_cakelampvm.sh b/scripts/site_avenger/revamp_cakelampvm.sh index dcc32be5..25edca2a 100644 --- a/scripts/site_avenger/revamp_cakelampvm.sh +++ b/scripts/site_avenger/revamp_cakelampvm.sh @@ -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 ############## -- 2.34.1