MODULE_VERSION="0.8.1"
ICINGAWEB_MODULEPATH="/usr/share/icingaweb2/modules"
REPO_URL="https://github.com/moreamazingnick/icingaweb2-module-scaffoldbuilder"
TARGET_DIR="${ICINGAWEB_MODULEPATH}/scaffoldbuilder"
URL="${REPO_URL}/archive/v${MODULE_VERSION}.tar.gz"
install -d -m 0755 "${TARGET_DIR}"
wget -q -O - "$URL" | tar xfz - -C "${TARGET_DIR}" --strip-components 1