Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified setup_db.groovy and added bash aliases so you can use postgr…
…es CLI tools without connection params or authorization, provide youre root. removed obsolete mysql devel tools
- Loading branch information
Tom Werges
committed
Apr 20, 2012
1 parent
68cfca6
commit be2fb89
Showing
6 changed files
with
49 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
# | ||
# This script allows you to run postgres CLI tools such as "psql" | ||
# without providing authorization or connection parameters, provided | ||
# you are root. After SOURCING this script, you should be able to run | ||
# "psql -d database" as root. No further auth is required. | ||
# | ||
# NOTE: This file must be SOURCED, not executed: ". aliases.sh" | ||
# | ||
# author: tom.werges | ||
# | ||
|
||
if [ -z "$EUCALYPTUS" ]; then | ||
echo "EUCALYPTUS must be set" | ||
else | ||
DATA_DIR=$EUCALYPTUS/var/lib/eucalyptus/db/data/ | ||
PORT=8777 | ||
|
||
alias psql="psql -h $DATA_DIR -p $PORT" | ||
alias pg_dump="pg_dump -h $DATA_DIR -p $PORT" | ||
alias pg_restore="pg_restore -h $DATA_DIR -p $PORT" | ||
fi | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.