Overhaul some things to support a basic CORE Office install
This commit is contained in:
parent
a84d360509
commit
2c5e073168
5 changed files with 52 additions and 23 deletions
|
|
@ -35,15 +35,17 @@ from rattail_fabric import apt, make_deploy
|
|||
deploy = make_deploy(__file__)
|
||||
|
||||
|
||||
def install(password):
|
||||
def install(password=None):
|
||||
"""
|
||||
Install the MySQL database service
|
||||
"""
|
||||
deploy('mysql/debconf.mako', 'debconf', context={'password': password})
|
||||
sudo('debconf-set-selections debconf')
|
||||
sudo('rm debconf')
|
||||
if password:
|
||||
deploy('mysql/debconf.mako', 'debconf', context={'password': password})
|
||||
sudo('debconf-set-selections debconf')
|
||||
sudo('rm debconf')
|
||||
apt.install('mysql-server')
|
||||
deploy('mysql/my.cnf.mako', '/root/.my.cnf', mode='0600', context={'password': password})
|
||||
if password:
|
||||
deploy('mysql/my.cnf.mako', '/root/.my.cnf', mode='0600', context={'password': password})
|
||||
|
||||
|
||||
def is_mariadb():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue