Are you willing to share your script? I'd like to compare it to mine to see if I've missed anything. Thanks!
Note that this doesn't have the Apache logfile hack so Apache probably won't run if you try this and don't add something to make it's fussy logfile.
https://github.com/EternityForest/KaithemAutomation/blob/dev...