The hostname configuration does not work like on Ubuntu. Must use ifcong instead:
#export KRAKEN_LOCAL_IP=$(hostname -I | cut -d' ' -f1)
export KRAKEN_LOCAL_IP=$(ifconfig | grep "inet " | grep -v 127.0.0.1 | cut -d' ' -f2)
How to switch command depending on the OS? Maybe use a try/catch?