mirror of
https://github.com/RasppleII/a2cloud.git
synced 2024-11-26 13:49:24 +00:00
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:
parent
eb6ace7850
commit
6fb6a068e2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user