Installer script should move along with actual version!

This commit is contained in:
Bryan Ashby 2018-11-09 19:05:59 -07:00
parent 97e2d103e2
commit 2616499c17
1 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,7 @@
{ # this ensures the entire script is downloaded before execution { # this ensures the entire script is downloaded before execution
ENIGMA_NODE_VERSION=${ENIGMA_NODE_VERSION:=10} ENIGMA_NODE_VERSION=${ENIGMA_NODE_VERSION:=10}
ENIGMA_BRANCH=0.0.9-alpha
ENIGMA_INSTALL_DIR=${ENIGMA_INSTALL_DIR:=$HOME/enigma-bbs} ENIGMA_INSTALL_DIR=${ENIGMA_INSTALL_DIR:=$HOME/enigma-bbs}
ENIGMA_SOURCE=${ENIGMA_SOURCE:=https://github.com/NuSkooler/enigma-bbs.git} ENIGMA_SOURCE=${ENIGMA_SOURCE:=https://github.com/NuSkooler/enigma-bbs.git}
TIME_FORMAT=`date "+%Y-%m-%d %H:%M:%S"` TIME_FORMAT=`date "+%Y-%m-%d %H:%M:%S"`
@ -78,7 +79,7 @@ download_enigma_source() {
else else
log "Downloading ENiGMA½ from git to '$INSTALL_DIR'" log "Downloading ENiGMA½ from git to '$INSTALL_DIR'"
mkdir -p "$INSTALL_DIR" mkdir -p "$INSTALL_DIR"
command git clone ${ENIGMA_SOURCE} "$INSTALL_DIR" || { command git clone ${ENIGMA_SOURCE} "$INSTALL_DIR" && git checkout ${ENIGMA_BRANCH} || {
log_error "Failed to clone ENiGMA½ repo. Please report this!" log_error "Failed to clone ENiGMA½ repo. Please report this!"
exit 1 exit 1
} }
@ -121,6 +122,8 @@ Additionally, the following support binaires are recommended:
Debian/Ubuntu : apt-get install lrzsz Debian/Ubuntu : apt-get install lrzsz
CentOS : yum install lrzsz CentOS : yum install lrzsz
See docs for more information!
EndOfMessage EndOfMessage
echo -e "\e[39m" echo -e "\e[39m"
} }