Fix installation directory handling and clarify defaults
- Fixed bootstrap-installer to prompt for installation directory with /opt/trans-install as default - Updated main-installer to detect and use existing installation path from service file - Modified config-module to use installation directory from environment or default to /opt/trans-install - Updated README with clear information about the default installation path - Bumped version to 2.0.7 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
484a021936
commit
0bce35d899
12
README.md
12
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:
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user