Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Proposal] Staged Setup Process. Fixes #30 #241
As formerly mentioned in #30 setup process is a one way trip and we should somehow avoid running it multiply times by user. Currently if anything goes wrong customers should backup then reinstall and reconfigure entire system OR they can recall setup.py which is not SAFE to be called multiply times.
If we inspect setup script currently all steps run on every setup execution. we can categorize and assign each task/step an special level that indicates if step should be run during setup process or not.
Level 1: System Setup
Including configure-system, download wars, install JRE and coping static assets.Steps in this level are system wide related and safe to rerun many times. This is specially useful for users to repair/upgrade system packages that ship with Gluu.
Level 2: (Re)Generate Configurations
Scripts in this level only generate configurations according to
Level 3: Migrate DB
This is the most Dangerous level and should be cared .User should be warned if db already installed. the point is user can easily be asked to migrate newer versions instead of reinstall.
Level 4: Start Services
By this improvement: