X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsite_avenger%2Frevamp_cakelampvm.sh;h=2717b3a65d7a45abb1ee19fe16a436659e2884f4;hb=761dacac78278fb0dd8a25376bc743c8064afd8b;hp=666c877f6fb09da04033f608a562f0611cf8d59b;hpb=f2189b64a5488f7ef2de4785789b6aac95fad36b;p=feisty_meow.git diff --git a/scripts/site_avenger/revamp_cakelampvm.sh b/scripts/site_avenger/revamp_cakelampvm.sh index 666c877f..2717b3a6 100644 --- a/scripts/site_avenger/revamp_cakelampvm.sh +++ b/scripts/site_avenger/revamp_cakelampvm.sh @@ -22,7 +22,12 @@ source "$FEISTY_MEOW_SCRIPTS/system/common_sysadmin.sh" # new requirement is to get the sql root password, since we need to do some sql db configuration. echo -n "Please enter the MySQL root account password: " +# turn off echo but remember former setting. +stty_orig=`stty -g` +stty -echo read mysql_passwd +# turn echo back on. +stty $stty_orig if [ -z "$mysql_passwd" ]; then echo "This script must have the sql root password to proceed." exit 1 @@ -41,6 +46,29 @@ test_or_die "fix after reconfigured as sudo" ############## +# set up some crucial users in the mysql db that we seem to have missed previously. + +sep + +echo "Adding users to the mysql database." + +#hmmm: good application for hiding output unless error here. +mysql -u root -p"$mysql_passwd" &>/dev/null < "/tmp/install_bluefish-$(logname).log" test_or_continue "installing bluefish editor" @@ -193,7 +221,7 @@ else ; in the domain. this forces any other sites besides the ones above to route ; to the actual vm IP address, which currently is singular and very fixated. * IN A 10.28.42.20 - IN HINFO "linux vm" "ubuntu" + IN HINFO \"linux vm\" \"ubuntu\" ;;;;;; @@ -224,24 +252,6 @@ echo successfully patched the samba configuration to enable writes on user home ############## -# set up some crucial users in the mysql db that we seem to have missed previously. - -sep - -mysql -u root -p"$mysql_passwd" <