Skip to content

Commit

Permalink
update mysql_fixes.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
andylytical committed May 13, 2024
1 parent 47259e0 commit c94bd61
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions jira_cleanup/mysql_fixes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
### VARIABLES
BASE=$( dirname "$0" )
HOST=jira-test
MY_CNF="${BASE}"/my.cnf.${HOST}


### FUNCTIONS
Expand All @@ -12,15 +11,10 @@ die() {
exit 99
}

prep() {
[[ -f "${MY_CNF}" ]] || die "File not found '${MY_CNF}'"
rsync "${MY_CNF}" ${HOST}:.my.cnf
}


run_sql() {
fn="$1"
cat "$fn" | ssh $HOST 'mysql'
"${BASE}"/my_run_sql.sh "${HOST}" "$fn"
}


Expand Down Expand Up @@ -73,8 +67,6 @@ fix_bad_sprints() {


### MAIN
prep

set -x

# Not needed anymore
Expand Down

0 comments on commit c94bd61

Please sign in to comment.