File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,21 @@ DBNAME="liberator"
2121
2222MYSQL_CONN_PARAMS=" --user=${MYSQL_USER} --password=${MYSQL_PASS} --host=${MYSQL_HOST} "
2323
24+ SSL_MODE=${MYSQL_SSL_MODE:- " " }
25+ OTHER_FLAGS=${MYSQL_OTHER_FLAGS:- " " }
26+
27+ if [ -n " $SSL_MODE " ]; then
28+ MYSQL_CONN_PARAMS=" $MYSQL_CONN_PARAMS --ssl-mode=$SSL_MODE "
29+ echo " SSL Mode set to $SSL_MODE "
30+ fi
31+
32+ if [ -n " $OTHER_FLAGS " ]; then
33+ MYSQL_CONN_PARAMS=" $MYSQL_CONN_PARAMS $OTHER_FLAGS "
34+ echo " Additional MySQL flags: $OTHER_FLAGS "
35+ fi
36+
37+ echo " MYSQL connection params: $MYSQL_CONN_PARAMS "
38+
2439echo " Deleting old snapshots in database..."
2540python3 delete_db_snapshots_in_db.py
2641
@@ -50,3 +65,4 @@ echo "Taking snapshot of RDS database..."
5065aws rds create-db-snapshot --db-instance-identifier " ${RDS_INSTANCE_ID} " --db-snapshot-identifier " ${SNAPSHOT_ID} "
5166
5267echo " Done"
68+
You can’t perform that action at this time.
0 commit comments