dev/provisioning/modules/puppi/files/scripts/header
author ymh <ymh.work@gmail.com>
Mon, 25 Apr 2016 14:05:17 +0200
changeset 157 1f9853178fcd
parent 28 b0b56e0f8c7f
permissions -rwxr-xr-x
revert ember-cli-test-loader to ember-cli recommended version

configfile="/etc/puppi/puppi.conf"

# Load general configurations
if [ ! -f $configfile ] ; then
    echo "Config file: $configfile not found"
    exit 2
else
    . $configfile
    . $scriptsdir/functions
fi

# Load project runtime configuration
projectconfigfile="$workdir/$project/config"
if [ ! -f $projectconfigfile ] ; then
    echo "Project runtime config file: $projectconfigfile not found"
    exit 2
else
    . $projectconfigfile
fi

# Activate debug 
case "$debug" in
    yes) set -x  ;;
    full) set -xv  ;;
esac