- # it seems our old files are still conflicting this.
- if [ -f config/config_google.php ]; then
- \rm -f config/config_google.php
- test_or_die "removing old config for google"
- fi
- if [ -f config/app.php ]; then
- \rm -f config/app.php
- test_or_die "removing old config for app"
- fi
-
- git reset --hard HEAD
- test_or_die "resetting git's hard head"
-
- rgetem .
-#hmmm: use output saver thing when that exists.
- test_or_die "getting mapsdemo app after inadequate corrective action was taken"
+ echo the apache tls-enabling.conf file seems to have already been patched to disable strict transport security.
+else
+ restart_apache
+ echo successfully patched the apache tls-enabling.conf file to disable strict transport security.
+fi
+
+##############
+
+# fix up bind so that we think of any address with cakelampvm.com on the end
+# as being on the vm. this is already true for some specific sites, but we
+# want the wildcard enabled to ease the use of DNS for windows folks.
+
+sep
+
+grep -q "\*[[:blank:]]*IN A[[:blank:]]*10.28.42.20" /etc/bind/cakelampvm.com.conf
+if [ $? -eq 0 ]; then
+ # already present.
+ echo the bind settings for wildcard domains off of cakelampvm.com seems to already be present.
+else
+ echo "
+
+
+;;;;;;
+
+; our bind magic, a wildcard domain, for all other sites with cakelampvm.com
+; 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\"
+
+;;;;;;
+
+
+
+" >> /etc/bind/cakelampvm.com.conf
+ restart_bind
+ echo "successfully added wildcard domains to the cakelampvm.com bind configuration."