NagiosEnterprises / ndoutils

NDOUtils - Database Output for Nagios Core
GNU General Public License v2.0
48 stars 21 forks source link

upgradedb script breaks with special shell characters as mysql password #30

Closed hedenface closed 7 years ago

hedenface commented 7 years ago

The offending line is here:

https://github.com/NagiosEnterprises/ndoutils/blob/master/db/upgradedb#L105

The "$password" needs to be contained in escaped quotes in order to allow for some special characters in the password (such as ( and ) specifically)