X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsite_avenger%2Frevamp_cakelampvm_v003.sh;h=5a230615f31583d233c8a7573cf5b43d0edc0fbb;hb=ec0607714e0846cbf25687be2c915eb28b521f4c;hp=66e4c89b2d347b5827df5f675fd6f003f6c452c4;hpb=36d090cb2b5c061a72f893534dba986d0cbd391c;p=feisty_meow.git diff --git a/scripts/site_avenger/revamp_cakelampvm_v003.sh b/scripts/site_avenger/revamp_cakelampvm_v003.sh index 66e4c89b..5a230615 100644 --- a/scripts/site_avenger/revamp_cakelampvm_v003.sh +++ b/scripts/site_avenger/revamp_cakelampvm_v003.sh @@ -45,10 +45,10 @@ sep echo "Regenerating feisty meow loading dock." -regenerate -test_or_die "regenerating feisty meow configuration" -chown -R "$(logname)":"$(logname)" /home/$(logname)/.[a-zA-Z0-9]* -test_or_die "fix after reconfigured as sudo" +recustomize +exit_on_error "regenerating feisty meow configuration" +chown -R "$(fm_username)":"$(fm_username)" /home/$(fm_username)/.[a-zA-Z0-9]* +exit_on_error "fix after reconfigured as sudo" ############## @@ -58,7 +58,12 @@ sep echo "Adding users to the mysql database." -#hmmm: good application for hiding output unless error here. +# note regarding v003 of the revamp script: i am leaving the mysql code +# alone for the moment; it's a good example of using our password, gathered +# above. (a better example wouldn't pass the password on the command line +# but involving an "expect" script is out of scope currently.) --fred + +#hmmm: good example here for why we need the code that "hides output unless error". mysql -u root -p"$mysql_passwd" &>/dev/null </dev/null <