Created
November 6, 2017 20:39
-
-
Save carbonin/a25b84efca2e6b3c3f91b673821a22c8 to your computer and use it in GitHub Desktop.
Script to clean out the default setup of a ManageIQ appliance. This should make the appliance easier to configure in multi-server architectures.
This file contains hidden or 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
| #!/bin/bash | |
| # Stop and disable services | |
| systemctl stop evmserverd | |
| systemctl disable evmserverd | |
| systemctl stop $APPLIANCE_PG_SERVICE | |
| systemctl disable $APPLIANCE_PG_SERVICE | |
| # Remove auto-generated files | |
| pushd /var/www/miq/vmdb | |
| rm -f REGION GUID certs/* config/database.yml | |
| popd | |
| # Remove database | |
| pushd $APPLIANCE_PG_DATA | |
| rm -rf ./* | |
| popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment