#!/bin/sh 

# Doesn't do much other then installing default settings if needed.
# Should be replaced with propper config migration framework when one is in
# place --aoliveira 2021/02/16


start() {
    if [ ! -f /barix/config/current/proxy_config ]; then
        cp /barix/config/defaults/proxy_config /barix/config/current/proxy_config
    fi
}

case "$1" in
  start|restart|reload)
    start
    ;;

  *)
    echo "Usage: $0 {start|reload|restart}"
    exit 1
esac

exit $?
