Skip to content

Commit 2bbe1f6

Browse files
rcourtmanclaude
andcommitted
feat: update install script for web-based configuration approach
- Remove automatic .env.example copying that's no longer needed - Preserve existing .env files to avoid overwriting user configuration - Update messaging to reflect new web-based setup via settings modal - Provide clear first-time setup instructions for new installations - Maintain backward compatibility for existing installations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 839bfc2 commit 2bbe1f6

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

scripts/install-pulse.sh

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,31 +1492,20 @@ set_permissions() {
14921492
}
14931493

14941494
configure_environment() {
1495-
print_info "Setting up environment configuration..."
1496-
local env_example_path="$PULSE_DIR/.env.example"
1495+
print_info "Checking environment configuration..."
14971496
local env_path="$PULSE_DIR/.env"
14981497

1499-
if [ ! -f "$env_example_path" ]; then
1500-
print_error "Environment example file not found at $env_example_path. Cannot configure."
1501-
return 1
1502-
fi
1503-
15041498
if [ -f "$env_path" ]; then
1505-
print_info "Configuration file $env_path already exists, skipping creation."
1506-
return 0
1507-
fi
1508-
1509-
print_info "Creating $env_path from example..."
1510-
if cp "$env_example_path" "$env_path"; then
1499+
print_success "Configuration file $env_path already exists, preserving existing configuration."
1500+
# Ensure proper ownership and permissions for existing file
15111501
chown "$PULSE_USER":"$PULSE_USER" "$env_path"
15121502
chmod 600 "$env_path"
1513-
print_success "Environment file created at $env_path."
1514-
print_info "Please edit $env_path to configure your Proxmox connection details."
15151503
return 0
1516-
else
1517-
print_error "Failed to copy $env_example_path to $env_path."
1518-
return 1
15191504
fi
1505+
1506+
print_info "No existing configuration found. Pulse will start in setup mode."
1507+
print_info "You can configure Pulse through the web interface after installation."
1508+
return 0
15201509
}
15211510

15221511
setup_systemd_service() {
@@ -1775,14 +1764,24 @@ final_instructions() {
17751764
print_success "Current version installed: $final_tag"
17761765
fi
17771766
echo "-------------------------------------------------------------"
1778-
print_info "You should be able to access the Pulse dashboard at:"
1767+
print_info "You can access the Pulse dashboard at:"
17791768
if [ -n "$ip_address" ]; then
17801769
echo " http://$ip_address:$port_value"
17811770
else
17821771
echo " http://<YOUR-LXC-IP>:$port_value"
17831772
print_warning "Could not automatically determine the LXC IP address."
17841773
fi
17851774
echo ""
1775+
if [ ! -f "$env_path" ]; then
1776+
print_info "FIRST TIME SETUP:"
1777+
print_info "• Pulse will automatically open the settings modal for initial configuration"
1778+
print_info "• Configure your Proxmox VE and PBS servers through the web interface"
1779+
print_info "• No manual editing of configuration files required!"
1780+
else
1781+
print_info "Your existing configuration has been preserved."
1782+
print_info "You can update settings anytime using the settings icon in the web interface."
1783+
fi
1784+
echo ""
17861785
print_info "The Pulse service $SERVICE_NAME is running and enabled on boot."
17871786
print_info "To check the status: sudo systemctl status $SERVICE_NAME"
17881787
print_info "To view logs: sudo journalctl -u $SERVICE_NAME -f"

0 commit comments

Comments
 (0)