mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-22 01:49:48 +00:00
[#2064] hammer.py: restart mysql on deb OSs
This commit is contained in:
parent
bcecca9a21
commit
7cbec9133f
@ -1091,6 +1091,10 @@ def _configure_mysql(system, revision, features):
|
||||
execute('sudo systemctl start mariadb.service')
|
||||
time.sleep(5)
|
||||
|
||||
elif system in ['debian', 'ubuntu']:
|
||||
execute('sudo systemctl enable mysql.service')
|
||||
execute('sudo systemctl restart mysql.service')
|
||||
|
||||
elif system == 'freebsd':
|
||||
cmd = "echo 'SET PASSWORD = \"\";' "
|
||||
cmd += "| sudo mysql -u root --password=\"$(sudo cat /root/.mysql_secret | grep -v '^#')\" --connect-expired-password"
|
||||
|
Loading…
x
Reference in New Issue
Block a user