Skip to content

Conversation

@alvonellos
Copy link

No description provided.

…n with PATH setup, improve MySQL validation

- Restore Python bookstack_migration.py multi-path .env discovery
- Update AUTO_INSTALL_EVERYTHING.sh:
  - Install Java 8 (not default version)
  - Install Rust via rustup
  - Install Maven for Java builds
  - Set JAVA_HOME and add to PATH for persistence
  - Improve MySQL validation with connection test
- Keep Python/Perl/C/Rust credential discovery consistent
- All scripts check /var/www/bookstack/.env first (standard BookStack location)
- Fallback to /var/www/html/.env, .env, ../.env, ../../.env
… all canonical versions in bookstack-migration/
- Restored deleted DokuWikiExporter.java to bookstack-migration/tools/
- Added loadEnvFile() method to search for .env in standard locations:
  - /var/www/bookstack/.env (standard)
  - /var/www/html/.env
  - .env, ../.env, ../../.env (relative)
- Updated run() method to use .env credentials when CLI args not provided
- Command-line arguments take precedence over .env values
- Now all migration tools (Perl, Python, C, Rust, Java, PHP) have consistent .env discovery
…ent)

- New install_perl_modules() function checks for required modules
- Tries cpanm first (faster), falls back to cpan, then sudo cpanm
- Runs automatically on script startup
- Logs results with Sméagol commentary
- Graceful error handling with manual install instructions if needed
- All modules checked: DBI, DBD::mysql, JSON, LWP::UserAgent
- Add .github/copilot-instructions.md with comprehensive development guide
- Reorganize migration tools into .github/migration/ directory
- Add migration documentation, tests, and stage-based workflow
- Clean up old migration scripts and temporary files

meg
@ssddanbrown
Copy link
Member

I'll assume this is an accidental PR, and isn't intended to be merged into core, therefore I'll close this off.

@ssddanbrown ssddanbrown closed this Jan 7, 2026
@alvonellos
Copy link
Author

alvonellos commented Jan 7, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants