7
if [ ! -e ./debian/appscale_install_${DIST}.sh ]; then
8
echo "${DIST} install is not supported."
12
echo "${DIST} install"
14
# check runtime dependency
15
hash ssh 2>&- || { echo >&2 "The tools require shh but it's not installed. Aborting."; exit 1; }
17
hash ruby1.8 2>&- || { echo >&2 "The tools require ruby1.8 but it's not installed or softlinked to ruby. If you have ruby installed and it is version 1.8, run 'ln -s ruby ruby1.8' in the directory the ruby binary resides in. Aborting."; exit 1; }
19
hash curl 2>&- || { echo >&2 "The tools require curl but it's not installed. Aborting."; exit 1; }
22
ruby1.8 -e "require 'openssl'" || { echo >&2 "The tools require the ruby openssl library installed. Aborting." ; exit 1; }
23
echo "Requirements met. Installing tools"
26
TARGETDIR=/usr/local/appscale-tools
28
cp -rv bin lib sample_apps templates $TARGETDIR || exit 1
29
cp -v CHANGELOG LICENSE README $TARGETDIR || exit 1
33
bash debian/appscale_install_${DIST}.sh all
35
echo "Unable to complete AppScale tools installation."
38
echo "AppScale tools installation completed successfully!"