2018-04-10 10:36:00 +00:00
|
|
|
#! /bin/bash
|
|
|
|
# vim: set tabstop=4 shiftwidth=4 noexpandtab filetype=sh:
|
|
|
|
|
|
|
|
# install.sh - a2server main installation script
|
|
|
|
#
|
|
|
|
# To the extent possible under law, T. Joseph Carter and Ivan Drucker have
|
|
|
|
# waived all copyright and related or neighboring rights to the a2server
|
|
|
|
# scripts themselves. Software used or installed by these scripts is subject
|
|
|
|
# to other licenses. This work is published from the United States.
|
|
|
|
|
|
|
|
a2serverVersion="1.9.0"
|
|
|
|
a2sScriptURL="https://raw.githubusercontent.com/RasppleII/a2server/master"
|
|
|
|
|
2018-04-11 13:59:48 +00:00
|
|
|
# Find the path of our source directory
|
2018-04-12 07:00:37 +00:00
|
|
|
a2sSource="$( dirname "${BASH_SOURCE[0]}" )"
|
|
|
|
echo $a2source
|
2018-04-11 13:59:48 +00:00
|
|
|
pushd $a2sSource >/dev/null
|
|
|
|
a2sSource="$PWD"
|
|
|
|
popd >/dev/null
|
|
|
|
if [[ ! -f "$a2sSource/.a2server_source" ]]; then
|
|
|
|
printf "\na2server: cannot find a2server source directory in $a2sSource.\n\n"
|
2018-04-11 02:23:47 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2018-04-10 10:36:00 +00:00
|
|
|
# Run the legacy setup script for anything not yet ported
|
2018-04-11 13:59:48 +00:00
|
|
|
if [[ -e "${a2sSource}/setup/ivan.sh" ]]; then
|
|
|
|
"${a2sSource}/setup/ivan.sh" "$@"
|
2018-04-10 10:36:00 +00:00
|
|
|
fi
|