Skip to content

Commit 4c25259

Browse files
Update the shell script to add data to the correct file
1 parent 7208520 commit 4c25259

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

setup.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@ echo "Enter your database password"
2222
read DB_PASSWORD
2323

2424
## Write to the .env file
25-
echo "PORT=${PORT}" >> .env.test
26-
echo " " >> .env.test
27-
echo "DB_CLIENT=${DB_CLIENT}" >> .env.test
28-
echo "DB_HOST=${DB_HOST}" >> .env.test
29-
echo "DB_USER=${DB_USER}" >> .env.test
30-
echo "DB_PASSWORD=${DB_PASSWORD}" >> .env.test
25+
echo "PORT=${PORT}" >> .env
26+
echo " " >> .env
27+
echo "DB_CLIENT=${DB_CLIENT}" >> .env
28+
echo "DB_HOST=${DB_HOST}" >> .env
29+
echo "DB_USER=${DB_USER}" >> .env
30+
echo "DB_PASSWORD=${DB_PASSWORD}" >> .env
3131

3232
## Setup SLACK
3333
echo "Would you like to receive slack notifications y/n"
3434
read SLACK_NOTIFICATIONS
3535
## Slack notifications have been allowed
3636
if [ $SLACK_NOTIFICATIONS == 'y' ]
3737
then
38-
echo " " >> .env.test
39-
echo "SLACK_NOTIFICATION=true" >> .env.test
38+
echo " " >> .env
39+
echo "SLACK_NOTIFICATION=true" >> .env
4040
echo "Enter the slack webhook URL below"
4141
read SLACK_WEBHOOK_URL
42-
echo "SLACK_WEBHOOK_URL=${SLACK_WEBHOOK_URL}" >> .env.test
42+
echo "SLACK_WEBHOOK_URL=${SLACK_WEBHOOK_URL}" >> .env
4343
fi

0 commit comments

Comments
 (0)