#!/bin/bash
set -eu # -x for verbose logging to juju debug-log
FORMULA_DIR=$(dirname $0)
if [[ -e $FORMULA_DIR/limesurvey-common ]] ; then
. $FORMULA_DIR/limesurvey-common
else
juju-log "ERROR: Could not load limesurvey-common from $FORMULA_DIR"
echo "ERROR: Could not load limesurvey-common from $FORMULA_DIR"
exit 1
fi
# Write the limesurvey config
set-config