mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-07 15:05:41 +01:00
34 lines
468 B
Bash
Executable File
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
|