forked from Katello/katello
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of ssh://git.fedorahosted.org/git/katello
- Loading branch information
Showing
7 changed files
with
132 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.57-1 src/ | ||
0.1.58-1 src/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
BUNDLE_WITHOUT: development:test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
|
||
echo "THIS SCRIPT WILL ERASE KATELLO / CANDLEPIN / PULP DATABASES" | ||
echo -e "\n\n" | ||
echo "It is strongly recommended to back up databases:" | ||
echo " # mongodump --db pulp_database --out - > pulp_database.json" | ||
echo " # pg_dump -c candlepin > candlepin_db.sql" | ||
echo " # pg_dump -c katello > katello_db.sql" | ||
|
||
read -p "Are you sure you want to proceed (yes/no)? " | ||
[ "$REPLY" != "yes" ] && exit 1 | ||
|
||
echo "ERASING!" | ||
exit 0 # WIP | ||
|
||
echo "Stopping Katello instance" | ||
service katello stop | ||
|
||
echo "Stopping Pulp instance" | ||
service pulp-server stop | ||
|
||
echo "Stopping Candlepin instance" | ||
service tomcat6 stop | ||
|
||
echo "Dropping Pulp database" | ||
# mongo sometimes hang in F14/F15 (725601) | ||
#echo 'db.dropDatabase();' | mongo pulp_database | ||
service mongod stop | ||
rm -rf /var/lib/mongodb/pulp_database | ||
service mongod start | ||
|
||
echo "Initializing Pulp database" | ||
/usr/bin/pulp-migrate | ||
|
||
echo "Initializing Candlepin database" | ||
/usr/share/candlepin/cpsetup -s | ||
|
||
echo "Starting Pulp instance" | ||
service pulp-server start | ||
|
||
echo "Starting Candlepin instance" | ||
service tomcat6 start | ||
|
||
echo "Initializing Katello database" | ||
rm -f /var/lib/katello/initdb_done | ||
service katello initdb | ||
|
||
echo "Starting Katello instance" | ||
service katello start | ||
|