ivan.sh now properly requires a2cSource to be set

Now a2cloud matches a2server in requiring that ivan.sh be run from a
source tree.  That'll always be true when running the installation using
the approved methods, including the web install upgrade.
This commit is contained in:
T. Joseph Carter 2018-04-22 13:54:15 -07:00
parent eb6ace7850
commit 6fb6a068e2

View File

@ -6,13 +6,14 @@ adtProVersion="2.0.1"
a2cScriptURL="https://raw.githubusercontent.com/RasppleII/a2cloud/master"
a2cBinaryURL="http://blocksfree.com/downloads"
# Find the path of our source directory
a2cDevel="$( dirname "${BASH_SOURCE[0]}" )/.."
if [[ -f "$a2cDevel/.a2cloud_source" ]]; then
pushd $a2cDevel >/dev/null
a2cDevel="$PWD"
popd >/dev/null
else
a2cDevel=
pushd $a2cDevel >/dev/null
a2cDevel="$PWD"
popd >/dev/null
if [[ ! -f "$a2cDevel/.a2cloud_source" ]]; then
printf "\na2cloud: cannot find a2cloud source directory in $a2cDevel.\n\n"
exit 1
fi
useExternalURL=1