diff --git a/README.md b/README.md index b67035f..0c90bb3 100755 --- a/README.md +++ b/README.md @@ -1,9 +1,15 @@ -# Transmission RSS Manager v2.0.6 +# Transmission RSS Manager v2.0.7 A comprehensive web-based tool to automate and manage your Transmission torrent downloads with RSS feed integration, intelligent media organization, and enhanced security features. Now with automatic updates and easy installation! ## Changelog +### v2.0.7 (2025-03-07) +- **Fixed**: Installation directory handling with prompt for choosing install path +- **Fixed**: Bootstrap-installer now defaults to /opt/trans-install with user configuration option +- **Improved**: Better detection and usage of existing installation directories during updates +- **Improved**: Updated documentation to clarify default installation paths + ### v2.0.6 (2025-03-05) - **Added**: Non-interactive mode support for scripted installations - **Improved**: Remote Transmission configuration collection in install-script.sh @@ -94,6 +100,10 @@ A comprehensive web-based tool to automate and manage your Transmission torrent - Disk: At least 200MB for the application, plus storage space for your media - Network: Internet connection for RSS feed fetching and torrent downloading +### Installation Directory + +**Note**: By default, the application will be installed to `/opt/trans-install`. During installation, you'll be prompted to choose a different directory if needed. If you're updating an existing installation, the installer will detect and use your current installation path. + ### Automatic Installation The easiest way to install Transmission RSS Manager is with the bootstrap installer: diff --git a/bootstrap-installer.sh b/bootstrap-installer.sh index f9b7c28..5cbce61 100755 --- a/bootstrap-installer.sh +++ b/bootstrap-installer.sh @@ -11,9 +11,14 @@ NC='\033[0m' # No Color BOLD='\033[1m' # Installation directory -INSTALL_DIR="/opt/trans-install" +DEFAULT_INSTALL_DIR="/opt/trans-install" REPO_URL="https://git.powerdata.dk/masterdraco/transmission-rss-manager.git" +# Ask for installation directory +echo -e "${YELLOW}Where would you like to install Transmission RSS Manager?${NC}" +read -p "Installation directory [$DEFAULT_INSTALL_DIR]: " input_install_dir +INSTALL_DIR=${input_install_dir:-$DEFAULT_INSTALL_DIR} + # Check if running as root if [ "$EUID" -ne 0 ]; then echo -e "${RED}This script must be run as root or with sudo privileges.${NC}" @@ -23,6 +28,7 @@ fi # Display welcome message echo -e "${GREEN}${BOLD}Transmission RSS Manager - Bootstrap Installer${NC}" echo -e "This script will install the latest version from the git repository." +echo -e "The default installation directory is ${BOLD}/opt/trans-install${NC}, but you can choose a different location." echo # Check for git installation diff --git a/main-installer.sh b/main-installer.sh index 6fbca46..6151d18 100755 --- a/main-installer.sh +++ b/main-installer.sh @@ -47,6 +47,14 @@ fi # Check for service file (secondary indicator) if [ -f "/etc/systemd/system/transmission-rss-manager.service" ]; then INSTALLATION_DETECTED=true + + # Check if the service points to /opt/trans-install + if grep -q "/opt/trans-install" "/etc/systemd/system/transmission-rss-manager.service"; then + # Set INSTALL_DIR to match existing service file + INSTALL_DIR="/opt/trans-install" + log "INFO" "Found existing installation at /opt/trans-install - using this as installation directory" + export INSTALL_DIR + fi fi # Check for data directory (tertiary indicator) diff --git a/modules/config-module.sh b/modules/config-module.sh index 0f164b6..9dad117 100644 --- a/modules/config-module.sh +++ b/modules/config-module.sh @@ -2,7 +2,7 @@ # Configuration module for Transmission RSS Manager Installation # Configuration variables with defaults -INSTALL_DIR="/opt/transmission-rss-manager" +INSTALL_DIR=${INSTALL_DIR:-"/opt/trans-install"} CONFIG_DIR="/etc/transmission-rss-manager" SERVICE_NAME="transmission-rss-manager" PORT=3000 diff --git a/package.json b/package.json index 61da47f..8de5c66 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "transmission-rss-manager", - "version": "2.0.6", + "version": "2.0.7", "description": "A comprehensive web-based tool to automate and manage your Transmission torrent downloads with RSS feed integration and intelligent media organization", "main": "server.js", "scripts": {