Compare commits

..

No commits in common. "1c16243a2d46e5e6b761bc046ac6b6791dcce7f9" and "1d9996202483eecabbf5f1c2a5cc753ae6732375" have entirely different histories.

3 changed files with 5 additions and 39 deletions

View File

@ -1,15 +1,9 @@
# Transmission RSS Manager v2.0.5 # Transmission RSS Manager v2.0.4
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! 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 ## Changelog
### v2.0.5 (2025-03-05)
- **Fixed**: Config file now properly stored in /etc/transmission-rss-manager directory
- **Fixed**: Remote Transmission detection in install-script.sh
- **Improved**: Enhanced symlink handling between installation dir and config dir
- **Improved**: Better environment variable passing between install scripts
### v2.0.4 (2025-03-05) ### v2.0.4 (2025-03-05)
- **Fixed**: Remote transmission detection in installer - **Fixed**: Remote transmission detection in installer
- **Fixed**: Configuration directory creation and permissions - **Fixed**: Configuration directory creation and permissions

View File

@ -104,26 +104,6 @@ function finalize_setup() {
mkdir -p "$INSTALL_DIR/logs" mkdir -p "$INSTALL_DIR/logs"
log "INFO" "Created logs directory: $INSTALL_DIR/logs" log "INFO" "Created logs directory: $INSTALL_DIR/logs"
# Ensure CONFIG_DIR exists
if [ ! -d "$CONFIG_DIR" ]; then
mkdir -p "$CONFIG_DIR"
log "INFO" "Created configuration directory: $CONFIG_DIR"
chown -R "$USER:$USER" "$CONFIG_DIR"
fi
# Check if the config symlink exists, create it if not
if [ ! -L "$INSTALL_DIR/config.json" ] || [ ! -e "$INSTALL_DIR/config.json" ]; then
# If there's a real file at INSTALL_DIR/config.json (not a symlink), move it to CONFIG_DIR
if [ -f "$INSTALL_DIR/config.json" ] && [ ! -L "$INSTALL_DIR/config.json" ]; then
log "INFO" "Moving existing config.json to $CONFIG_DIR"
mv "$INSTALL_DIR/config.json" "$CONFIG_DIR/config.json"
fi
# Create the symlink
ln -sf "$CONFIG_DIR/config.json" "$INSTALL_DIR/config.json"
log "INFO" "Created symlink from $INSTALL_DIR/config.json to $CONFIG_DIR/config.json"
fi
# Set proper ownership for the installation directory # Set proper ownership for the installation directory
chown -R $USER:$USER $INSTALL_DIR chown -R $USER:$USER $INSTALL_DIR
@ -144,7 +124,7 @@ function finalize_setup() {
cd $INSTALL_DIR && npm install cd $INSTALL_DIR && npm install
# Handle configuration file # Handle configuration file
if ! update_config_file "$CONFIG_DIR/config.json" "$IS_UPDATE"; then if ! update_config_file "$INSTALL_DIR/config.json" "$IS_UPDATE"; then
log "INFO" "Creating default configuration file..." log "INFO" "Creating default configuration file..."
# Create the users array content for JSON # Create the users array content for JSON
@ -153,10 +133,7 @@ function finalize_setup() {
USER_JSON="{ \"username\": \"${ADMIN_USERNAME}\", \"password\": \"${ADMIN_PASSWORD}\", \"role\": \"admin\" }" USER_JSON="{ \"username\": \"${ADMIN_USERNAME}\", \"password\": \"${ADMIN_PASSWORD}\", \"role\": \"admin\" }"
fi fi
# Make sure CONFIG_DIR exists cat > $INSTALL_DIR/config.json << EOF
mkdir -p "$CONFIG_DIR"
cat > $CONFIG_DIR/config.json << EOF
{ {
"version": "1.2.0", "version": "1.2.0",
"transmissionConfig": { "transmissionConfig": {
@ -211,12 +188,7 @@ function finalize_setup() {
"logLevel": "info" "logLevel": "info"
} }
EOF EOF
# Set ownership for the config file chown $USER:$USER $INSTALL_DIR/config.json
chown $USER:$USER $CONFIG_DIR/config.json
# Ensure symlink exists from INSTALL_DIR to CONFIG_DIR
ln -sf "$CONFIG_DIR/config.json" "$INSTALL_DIR/config.json"
log "INFO" "Created symlink from $INSTALL_DIR/config.json to $CONFIG_DIR/config.json"
log "INFO" "Default configuration created successfully" log "INFO" "Default configuration created successfully"
fi fi

View File

@ -1,6 +1,6 @@
{ {
"name": "transmission-rss-manager", "name": "transmission-rss-manager",
"version": "2.0.5", "version": "2.0.4",
"description": "A comprehensive web-based tool to automate and manage your Transmission torrent downloads with RSS feed integration and intelligent media organization", "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", "main": "server.js",
"scripts": { "scripts": {