echo "Regenerating feisty meow loading dock."
-regenerate
+recustomize
exit_on_error "regenerating feisty meow configuration"
-chown -R "$(logname)":"$(logname)" /home/$(logname)/.[a-zA-Z0-9]*
+chown -R "$(fm_username)":"$(fm_username)" /home/$(fm_username)/.[a-zA-Z0-9]*
exit_on_error "fix after reconfigured as sudo"
##############
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 <<EOF
create user if not exists 'root'@'%' IDENTIFIED BY '$mysql_passwd';
grant all privileges on *.* TO 'root'@'%' with grant option;
sep
-regenerate
-exit_on_error "regenerating feisty meow scripts"
-chown -R "$(logname)":"$(logname)" /home/$(logname)/.[a-zA-Z0-9]*
-exit_on_error "fix after regenerate as sudo"
+recustomize
+exit_on_error "recustomize-ing feisty meow scripts"
+chown -R "$(fm_username)":"$(fm_username)" /home/$(fm_username)/.[a-zA-Z0-9]*
+exit_on_error "fix after recustomize as sudo"
echo "
Thanks for revamping your cakelampvm. :-)
You may want to update your current shell's feisty meow environment by typing:
- regenerate
+ recustomize
"
##############