npotorino / zabbix-backup

Backup script for Zabbix configuration data (MySQL/PostgreSQL)
MIT License
67 stars 30 forks source link

Fix retrieving DBPassword when it contains a "=" #14

Closed mathieumd closed 1 year ago

mathieumd commented 1 year ago

If your DB password contains an equal sign "=", the current awk code failed to retrieve the full password. AFAIK, using grep and cut is simpler than awk for this task.