the server.cnf is basically a dotfile and thus native bash ... duh
do not reimplement that in bash. Just source it. Then the config vars in the code also match the config vars in the file that would be cool too for fast lookup. And it allows for things like:
unix_user=teeworlds
git_root=/home/$unix_user/git
^ which would help a lot with maintenance!
It should still keep the value checks tho. No invalid cfg assignments and no invalid values.