#!/bin/sh

# This checks to see if the new image has the file ./var/db/version/apache
# which for now indicates that apache 2.4 resides in the new image, eventually
# we want a more general solution

tar -xOf /ifs/.ifsvar/upgrade/install.tar.gz ./var/db/versions/apache 2> /dev/null > /dev/null
Error=$?

if [ ${Error} -ne 0 ]; then
    echo "Error, trying to upgrade to a version of OneFS without Apache 2.4"
fi

exit ${Error}
