Before executing a command, for security reasons `sudo` clears the environment, so the value of DEBIAN_FRONTEND was never passed to apt-get. This was causing the mysql packqge to still prompt for a value interactively.
Before executing a command, for security reasons `sudo` clears the environment, so the value of DEBIAN_FRONTEND was never passed to apt-get. This was causing the mysql packqge to still prompt for a value interactively.