File tree Expand file tree Collapse file tree 3 files changed +4
-45
lines changed Expand file tree Collapse file tree 3 files changed +4
-45
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ if [ "$#" -eq 3 ]; then
32
32
sudo -u postgres createuser --encrypted --no-createdb --no-createrole --no-superuser --no-replication $USERNAME
33
33
sudo -u postgres psql -c ${SET_PWD_COMMAND}
34
34
elif [ " $# " -eq 0 ]; then
35
- # Running interatively (no arguments)
35
+ # Running interactively (no arguments)
36
+ echo " Enter the name of the database and username of that database's owner"
36
37
echo ' NOTE: the database naming convention is (without bracket): <the project name>-<data purpose>'
37
38
read -p " Database name: " DB_NAME
38
39
read -p " Username: " USERNAME
Original file line number Diff line number Diff line change 5
5
EC2MACHINE=$1 # Public DNS of the EC2 VM e.g. ec2-54-200-42-122.us-west-2.compute.amazonaws.com
6
6
FILETOUPLOAD=" *"
7
7
# PEMFILE=$2
8
- PEMFILE=" ~/.ssh/hackoregon-2018-database-dev-env.pem"
8
+ # PEMFILE="~/.ssh/hackoregon-2018-database-dev-env.pem"
9
+ PEMFILE=" ~/.ssh/hackoregon-integration-ecs.pem"
9
10
10
11
scp -i $PEMFILE $FILETOUPLOAD ec2-user@${EC2MACHINE} :~
11
12
ssh -i $PEMFILE ec2-user@${EC2MACHINE}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments