Skip to content

Commit 35b0d89

Browse files
authored
Update deployschema.sh
Fix issue by which `deployschema.sh` wouldn't exit if it failed.
1 parent c516a02 commit 35b0d89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.ebextensions/deployschema.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/sh
2+
set -ex
3+
24
/usr/bin/mysql \
35
-u $RDS_USERNAME \
46
-p$RDS_PASSWORD \
57
-h $RDS_HOSTNAME \
68
$RDS_DB_NAME \
7-
-e 'CREATE TABLE IF NOT EXISTS urler(id INT UNSIGNED NOT NULL AUTO_INCREMENT, author VARCHAR(63) NOT NULL, message TEXT, PRIMARY KEY (id))'
9+
-e 'CREATE TABLE IF NOT EXISTS urler(id INT UNSIGNED NOT NULL AUTO_INCREMENT, author VARCHAR(63) NOT NULL, message TEXT, PRIMARY KEY (id))'

0 commit comments

Comments
 (0)