#!/bin/bash ## When writing relation script, remember: ## - they should be idempotents ## - they can be launched while the dockers is already up ## - they are launched from the host ## - the target of the link is launched first, and get a chance to ``relation-set`` ## - both side of the scripts get to use ``relation-get``. relation-set type mysql || { err "Could not set relation ${WHITE}type${NORMAL} to 'mysql'." exit 1 } . hooks/mysql_database-relation-joined