After this PR nethesis/nethserver-phonebook-mysql#34, if the PhonebookDBPasswd password is changed, the password of the MySQL user pbookuser is no more update.
Expected behavior
The relative user password is updated with the new password
# mysql -u pbookuser -p$(cat /var/lib/nethserver/secrets/PhonebookDBPasswd)
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 1768
Server version: 5.5.68-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> Bye
Actual behavior
The password is not updated
# mysql -u pbookuser -p$(cat /var/lib/nethserver/secrets/PhonebookDBPasswd)
ERROR 1045 (28000): Access denied for user 'pbookuser'@'localhost' (using password: YES)
After this PR nethesis/nethserver-phonebook-mysql#34, if the
PhonebookDBPasswd
password is changed, the password of the MySQL userpbookuser
is no more update.Steps to reproduce
# rm -f /var/lib/nethserver/secrets/PhonebookDBPasswd
# signal-event nethserver-phonebook-mysql-update
Expected behavior The relative user password is updated with the new password
Actual behavior The password is not updated
Components
nethserver-phonebook-mysql