Files
cyphernode/install/script/setup.sh
2018-12-26 14:52:52 -05:00

34 lines
468 B
Bash
Executable File

#!/bin/sh
. ./trace.sh
. ./configure.sh
. ./install.sh
. ./docker.sh
CONFIGURE=0
INSTALL=0
while getopts ":ci" opt; do
case $opt in
c)
CONFIGURE=1
;;
i)
INSTALL=1
;;
\?)
echo "Invalid option: -$OPTARG. Use -c to configure and -i to install" >&2
;;
esac
done
if [[ $CONFIGURE == 1 ]]; then
echo "Starting configuration phase"
configure
fi
if [[ $INSTALL == 1 ]]; then
echo "Starting installation phase"
install
fi