From c2201b3f8ceae2c156a4028840a3efab2c92b0f4 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Mon, 19 Oct 2020 22:44:02 +0000 Subject: [PATCH] 3.1.0(2) --- prep/gs-install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/prep/gs-install.sh b/prep/gs-install.sh index bb96eee..19da0da 100644 --- a/prep/gs-install.sh +++ b/prep/gs-install.sh @@ -194,11 +194,15 @@ else echo -e "[${YELLOW}i${NC}] Check Documentation for Instructions" echo -e "[${YELLOW}i${NC}] Installation Exiting (without changes)" else + echo -en "[${BLUE}?${NC}] Path to install Gravity Sync (default is $HOME)?" + read INPUT_GS_DIR + INPUT_GS_DIR="${INPUT_GS_DIR:-~}" + echo -e "[${BLUE}>${NC}] Creating Gravity Sync Directories" - git clone https://github.com/vmstan/gravity-sync.git + git clone https://github.com/vmstan/gravity-sync.git $INPUT_GS_DIR echo -e "[${BLUE}>${NC}] Starting Gravity Sync Configuration" echo -e "========================================================" - sh gravity-sync/gravity-sync.sh configure < /dev/tty + sh $INPUT_GS_DIR/gravity-sync/gravity-sync.sh configure < /dev/tty # echo -e "[${YELLOW}i${NC}] This host is now prepared to configure Gravity Sync!" # echo -e "[${YELLOW}i${NC}] Please run './gravity-sync configure' from $HOME/gravity-sync" # echo -e "[${YELLOW}i${NC}] Visit https://github.com/vmstan/gravity-sync for more instructions."