It’s WordPress Setup Script Testing Time Yo

Info

Now that I have the testing env somewhat setup, i can use the script to test how good i can duct taped this code together.

script

  • asks for an install name
  • creates USER and DB
  • then pulls WP core files
  • config WP
  • config and enable site for apache
  • config and enable site for NGINX

Steps

  • script seems to be mostly working except for the configs
  • wrote a delete install script that cleans up an INSTALL
  • using EOF to copy over the configs
  • the INSTALL argument seems to be causing the issues
  • anything with $ in the configs are being replaced
  • escape those $ yo \$INSTALL
  • script works now

Needs A Better Way To Test This_ I should hook this up to a button

Ref

Share this Post:
Scroll to Top