Change 19380

tjuricek
tjuricek committed this change into //guest/perforce_software/helix-web-services/main/source
Request Review
Download .zip
Adjust post-install config to handle upgrades better, and a test for debian systems.

- Our default config file has an invalid line to flag that the file has never been touched. It's removed on the first post-install config.
- We guard against overwriting things the next times post-install config is run, like the keystore files.
- There's a "media" setting in the install4j configuration to treat "never override" as config files, which avoid overwriting the config (finally found it), at least on debian.
- Added a new test suite just to ensure the configuration file is not overwritten, only works for .debs at the moment
  • Files 12
  • Comments 0
7 edited 5 added 0 deleted
automation/src/main/java/com/perforce/helix_web_services/automation/DeploymentCleanup.java#14
Loading...
automation/src/main/java/com/perforce/helix_web_services/automation/ProjectLocations.java#6
Loading...
deployment/src/main/java/com/perforce/helix_web_services/deployment/ConfigureNewSystem.java#11
Loading...
deployment/src/main/java/com/perforce/helix_web_services/deployment/UninstallSystem.java#2
Loading...
install4j/helix-web-services.conf#4
Loading...
install4j/hws.install4j#23
Loading...
jdk_extensions/src/main/java/com/perforce/helix_web_services/jdk_extensions/TimingHelpers.java#1
Loading...
testing/build.gradle#18
Loading...
testing/src/main/java/com/perforce/helix_web_services/testing/deployment/DeploymentConventions.java#1
Loading...
testing/src/main/java/com/perforce/helix_web_services/testing/deployment/deb/DebDeployment.java#1
Loading...
testing/src/main/java/com/perforce/helix_web_services/testing/deployment/deb/UpgradeConfigTests.java#1
Loading...
testing/testng-deployment-deb.xml#1
Loading...
Tip: Use n and p to cycle through the changes.