summaryrefslogtreecommitdiffstats
path: root/hammer.py
diff options
context:
space:
mode:
authorAndrei Pavel <andrei@isc.org>2021-09-03 13:59:12 +0200
committerAndrei Pavel <andrei@isc.org>2021-09-06 15:56:32 +0200
commit7cbec9133f32313a4eba23d592bb00993a526aac (patch)
tree045d695bb9a0e444db509125cdf7fd666678c6ff /hammer.py
parent[#2064] hammer: don't modify postgres entry in hba (diff)
downloadkea-7cbec9133f32313a4eba23d592bb00993a526aac.tar.xz
kea-7cbec9133f32313a4eba23d592bb00993a526aac.zip
[#2064] hammer.py: restart mysql on deb OSs
Diffstat (limited to 'hammer.py')
-rwxr-xr-xhammer.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/hammer.py b/hammer.py
index 4a515ac0c6..c8a23c5fef 100755
--- a/hammer.py
+++ b/hammer.py
@@ -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"