# This script checks the version of the configuration file and either # alerts the user about the need to run the upgrade, or attempts to # perform such an upgrade. CFGFILE="${1}" . "${CT_LIB_DIR}/scripts/functions" . "${CFGFILE}" if [ "${CT_CONFIG_VERSION_CURRENT}" == "${CT_CONFIG_VERSION}" ]; then # Nothing to do exit 0 fi if [ -z "${CT_UPGRADECONFIG}" ]; then if [ "${CT_CONFIG_VERSION}" != "0" ]; then oldversion="is version ${CT_CONFIG_VERSION}" else oldversion="has no version" fi cat 2>&1 <&2 exit 1