#!/usr/bin/env bash

usage() {
    echo "Usage: $0 <EVerest-installation-directory>"
    exit 1
}

if [ $# -ne 1 ] ; then
    usage
else
    EVEREST_OCPP_CONFIGS_PATH="$1/share/everest/modules/OCPP"
    mkdir -p "$EVEREST_OCPP_CONFIGS_PATH"

    cp config/libocpp-config-* "$EVEREST_OCPP_CONFIGS_PATH"
    cp config/everest-config-* "$EVEREST_OCPP_CONFIGS_PATH"
fi
