-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Rework all the before/after install/remove scripts for the RPM and DEB packages so that upgrades and uninstalls are more properly handled. Most notably, upgrades of DEBs could lead to a broken installation with some missing symlinks for /usr/bin/api-umbrella. This also resolves a number of idiosyncrasies between how these scripts get called in different order and with different arguments depending on RPM vs DEB and upgrades vs fresh installs. - Fix the "before-remove" script accidentally referencing the script intended for "after-remove". - Fix the RPM packages leaving a bunch of empty directories in /opt/api-umbrella/embedded after uninstall. - Add test coverage to our serverspec suite to actually test package uninstall, package purge (deb only), and the upgrade process between older versions of API Umbrella and the current version. These tests aren't fast, but given all the combinations of platforms and upgrade possibilities, this helps ensure we have a clean upgrade path when building new packages. - Allow the "api-umbrella status" and "api-umbrella stop" commands to work properly against a legacy installation of the NodeJS app. This is needed so we can cleanly handle package upgrades. - Better error handling for if you try to start api-umbrella when it's already started or stop api-umbrella when it's already stopped. - Better error handling for the "run_command" function in case the shell gets killed early.
- Loading branch information
Showing
17 changed files
with
839 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.