2021-09-13 16:21:11 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-09-20 14:02:21 -05:00
|
|
|
# signal_status takes a container name and a status and creates a file in the
|
2021-09-13 16:21:11 -05:00
|
|
|
# "status" directory whose contents are the provided status. This can be
|
|
|
|
# leveraged by dependent containers via the `wait_for` command.
|
|
|
|
|
|
|
|
mkdir -p "/tmp/status"
|
|
|
|
echo "$2" > "/tmp/status/$1"
|
|
|
|
printf "Marked %s as %s.\n" "$1" "$2"
|