2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 09:57:41 +00:00

[#2064] hammer.py: restart mysql on deb OSs

This commit is contained in:
Andrei Pavel 2021-09-03 14:59:12 +03:00
parent bcecca9a21
commit 7cbec9133f

View File

@ -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"