diff options
author | Andrei Pavel <andrei@isc.org> | 2021-09-03 13:59:12 +0200 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2021-09-06 15:56:32 +0200 |
commit | 7cbec9133f32313a4eba23d592bb00993a526aac (patch) | |
tree | 045d695bb9a0e444db509125cdf7fd666678c6ff /hammer.py | |
parent | [#2064] hammer: don't modify postgres entry in hba (diff) | |
download | kea-7cbec9133f32313a4eba23d592bb00993a526aac.tar.xz kea-7cbec9133f32313a4eba23d592bb00993a526aac.zip |
[#2064] hammer.py: restart mysql on deb OSs
Diffstat (limited to 'hammer.py')
-rwxr-xr-x | hammer.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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" |