#!/bin/bash set -e # Setting debconf to don't ask mysql passwords debconf-set-selections <<< 'mysql-server-5.7 mysql-server/root_password password your_password' debconf-set-selections <<< 'mysql-server-5.7 mysql-server/root_password_again password your_password' export DEBIAN_FRONTEND=noninteractive exit 0