Use variables and remove some duplicate code.
No need to use full path to mysqladmin here.
Improve syncpass tool - Update system user passwd if not empty and flush privileges.
Sync both Hostmaster (before and after the upgrade) and Provision (before the upgrade) db_passwd to avoid issues with duplicate leftover grants.
PHP 5.3.24