dev/provisioning/modules/puppi/files/scripts/header
author ymh <ymh.work@gmail.com>
Thu, 16 Nov 2017 16:31:48 +0100
changeset 555 51023e5eae05
parent 28 b0b56e0f8c7f
permissions -rwxr-xr-x
Added tag 0.0.24 for changeset f28a539ba106

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