(I didn't ban anyone! Not even having the right to do so...)
For CFGDIR und LOGDIR just name the subfolders, not the entire path. So "config" and "log" is enough.
So far with the config (the rest looks fine).
For the error "[[: not found" you must edit the first line to: #!/bin/bash
Greets