Files
pulse/server/index.js
T
Pulse Monitor 977da55e6e feat: add v3 migration shim to prevent confusion after auto-update
- Add server/index.js that shows clear migration instructions
- Prevents v3 from running with partial v4 files
- Users see clear error message in logs with migration steps
- Update build script to include shim in releases
2025-08-04 20:02:21 +00:00

18 lines
973 B
JavaScript

// Pulse v4 Migration Shim
// This file prevents v3 from running after downloading v4 files
console.error('\n========================================');
console.error('PULSE V4 MIGRATION REQUIRED');
console.error('========================================\n');
console.error('Your Pulse installation has been partially updated to v4.');
console.error('Pulse v4 is a complete rewrite in Go and requires manual migration.\n');
console.error('To complete the migration:');
console.error('1. Stop the service: systemctl stop pulse.service');
console.error('2. Run the installer: /opt/pulse/install.sh');
console.error('3. OR create a fresh installation in a new container\n');
console.error('Your existing configuration is preserved in /opt/pulse/.env\n');
console.error('For more information: https://github.com/rcourtman/Pulse/releases/v4.0.0');
console.error('========================================\n');
// Exit with error to prevent service from running
process.exit(1);