]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2064] hammer.py: Debian uses mariadb.service
authorAndrei Pavel <andrei.pavel@mail.com>
Mon, 6 Sep 2021 19:30:10 +0000 (22:30 +0300)
committerAndrei Pavel <andrei.pavel@mail.com>
Mon, 6 Sep 2021 19:30:10 +0000 (22:30 +0300)
hammer.py

index 25391baa1d62630fd297524b2dc74f59f518ef1b..108ba9d9771dd951e489546032c7c6b9d68ff3ee 100755 (executable)
--- a/hammer.py
+++ b/hammer.py
@@ -1086,12 +1086,11 @@ def _get_local_timezone():
 
 def _configure_mysql(system, revision, features):
     """Configure MySQL database."""
-    if system in ['fedora', 'centos']:
+    if system in ['debian', 'fedora', 'centos']:
         execute('sudo systemctl enable mariadb.service')
         execute('sudo systemctl start mariadb.service')
-        time.sleep(5)
 
-    elif system in ['debian', 'ubuntu']:
+    elif system == 'ubuntu':
         execute('sudo systemctl enable mysql.service')
         execute('sudo systemctl restart mysql.service')