In Virtualmin we can invoke the post action script to trigger additional actions. I wonder can we do something like that in Webmin. For example, we have the MySQL root password set in /etc/my.cnf file's [client] section like so:
to make easier database manipulation for users with proper privileges. But if someone changes the database root password through Webmin's UI then things get de-synced and we have to update the above line manually. I wonder how can we catch the "Change Administration Password" action to be able to sync the password in my.cnf?
I know if changed the new password can be found in /etc/webmin/mysql/config, but it doesn't make sense to cron-watch when that file changes. So would be wonderful somehow to trigger custom script in case of any Webmin action and there we could filter out if the action was about the database root password change.