Skip to content

Commit 2cc0a69

Browse files
committed
update to bash
1 parent 8e6c3a2 commit 2cc0a69

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

installer.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ echo "5) Litestream - Provides continuous backup for SQLite databases"
115115

116116
echo ""
117117
print_message "Please enter the numbers corresponding to the services you'd like to run (e.g., 1 2 3):"
118-
read -r SERVICES_SELECTED
118+
# read -r SERVICES_SELECTED
119+
read -p "Selection: " SERVICES_SELECTED
119120
echo ""
120121

121122
# Build a list of services to disable using profiles
@@ -154,7 +155,8 @@ echo "";
154155

155156
# Prompt for START_HEIGHT
156157
print_question "By default, your node will sync from block 0. If you want to start from a specific block, enter the block number. Otherwise, leave it empty."
157-
read -r START_HEIGHT
158+
# read -r START_HEIGHT
159+
read -p "START_HEIGHT: " START_HEIGHT
158160
if [ -n "$START_HEIGHT" ]; then
159161
update_or_add_env_var "START_HEIGHT" "$START_HEIGHT"
160162
print_success "Your node will start syncing from block $START_HEIGHT"
@@ -165,7 +167,8 @@ echo ""
165167

166168
# Prompt for STOP_HEIGHT
167169
print_question "Your node will sync indefinitely by default. If you want to stop at a specific block, enter the block number. Otherwise, leave it empty."
168-
read -r STOP_HEIGHT
170+
# read -r STOP_HEIGHT
171+
read -p "STOP_HEIGHT: " STOP_HEIGHT
169172
if [ -n "$STOP_HEIGHT" ]; then
170173
update_or_add_env_var "STOP_HEIGHT" "$STOP_HEIGHT"
171174
print_success "Your node will stop syncing at block $STOP_HEIGHT"
@@ -176,14 +179,15 @@ echo ""
176179

177180
# Step 6: Ask if the user wants the node to resolve ArNS names
178181
print_question "Do you want your node to resolve ArNS names? (y/n)"
179-
read -r RESOLVE_ARNS
182+
# read -r RESOLVE_ARNS
183+
read -p "RESOLVE_ARNS: " RESOLVE_ARNS
180184

181185
if [ "$RESOLVE_ARNS" = "y" ] || [ "$RESOLVE_ARNS" = "Y" ]; then
182186
print_question "Please enter the domain that your node will use for resolving ArNS names (e.g., example.com)."
183187
read -r ARNS_ROOT_HOST
184188
if [ -n "$ARNS_ROOT_HOST" ]; then
185189
update_or_add_env_var "ARNS_ROOT_HOST" "$ARNS_ROOT_HOST"
186-
190+
187191
# Check if the resolver service was selected
188192
if ! echo "$SERVICES_SELECTED" | grep -q "4"; then
189193
print_message "You chose to resolve ArNS names, but the resolver service is not enabled. The resolver service is necessary for this feature."
@@ -298,4 +302,4 @@ print_message "AR.IO Node Repository: https://github.com/ar-io/ar-io-node"
298302
print_message "AR.IO Node Overview Docs: https://docs.ar.io/gateways/ar-io-node/overview/"
299303

300304
echo ""
301-
print_success "Congratulations for setting up your AR.IO node! Happy syncing! 🎉"
305+
print_success "Congratulations for setting up your AR.IO node! Happy syncing! 🎉"

0 commit comments

Comments
 (0)