Fix install-script.sh handling of remote Transmission
- Add direct remote Transmission prompt in install-script.sh - Pass TRANSMISSION_REMOTE environment variable to main-installer.sh - Add clarifying message when asking about installing Transmission daemon - This fixes execution path when using install-script.sh instead of bootstrap-installer.sh 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
1795373b42
commit
a1773d0bae
@ -1166,4 +1166,21 @@ fi
|
||||
|
||||
# Launch the main installer
|
||||
echo -e "${GREEN}Launching main installer...${NC}"
|
||||
exec "${SCRIPT_DIR}/main-installer.sh"
|
||||
|
||||
# Ask about remote Transmission before launching main installer
|
||||
# This ensures the TRANSMISSION_REMOTE variable is set correctly
|
||||
echo -e "${BOLD}Transmission Configuration:${NC}"
|
||||
echo -e "Configure connection to your Transmission client:"
|
||||
echo
|
||||
|
||||
read -p "Is Transmission running on a remote server? (y/n) [n]: " input_remote
|
||||
if [[ $input_remote =~ ^[Yy]$ ]]; then
|
||||
export TRANSMISSION_REMOTE=true
|
||||
echo -e "${GREEN}Remote Transmission selected.${NC}"
|
||||
else
|
||||
export TRANSMISSION_REMOTE=false
|
||||
echo -e "${GREEN}Local Transmission selected.${NC}"
|
||||
fi
|
||||
|
||||
# Make sure the variable is available to the main installer
|
||||
env TRANSMISSION_REMOTE="$TRANSMISSION_REMOTE" "${SCRIPT_DIR}/main-installer.sh"
|
@ -51,6 +51,7 @@ function install_dependencies() {
|
||||
if [ "$TRANSMISSION_REMOTE" = false ]; then
|
||||
if ! command_exists transmission-daemon; then
|
||||
log "INFO" "Local Transmission installation selected, but transmission-daemon is not installed."
|
||||
log "INFO" "You selected to use a local Transmission installation during configuration."
|
||||
read -p "Would you like to install Transmission now? (y/n): " install_transmission
|
||||
|
||||
if [[ "$install_transmission" =~ ^[Yy]$ ]]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user