Skip to content

Commit

Permalink
#147: Allow server cleaner to remove databases with hyphens in name
Browse files Browse the repository at this point in the history
  • Loading branch information
BR0kEN- committed Sep 11, 2018
1 parent 0e6ea03 commit 5d4a088
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmf/all/.cikit/ci/server-cleaner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
shell: |-
COMMAND="mysql -u{{ mysql.user }} -p{{ mysql.pass }} -se"
${COMMAND} "SHOW DATABASES" | grep "{{ build_slug }}" | xargs -I "@@" ${COMMAND} "DROP DATABASE @@"
${COMMAND} "SHOW DATABASES" | grep "{{ build_slug }}" | xargs -I "@@" ${COMMAND} "DROP DATABASE \`@@\`"
rm -rf {{ webroot }}/*{{ build_slug }}*
args:
warn: no
Expand Down
2 changes: 2 additions & 0 deletions scripts/roles/cikit-ci/files/tasks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ cikit_hook() {

if [ -f "$HOOK_PLAYBOOK" ]; then
cikit_run "$HOOK_PLAYBOOK" --dist="$DESTINATION" --rc="$PROCESS_EXIT_CODE"
else
echo "==> There's no \"$HOOK_PLAYBOOK\" hook to run."
fi
}

Expand Down

0 comments on commit 5d4a088

Please sign in to comment.