airshipctl/tools/airship-in-a-pod/base/signal_status
Ian Howell 0a09ba491b AIAP: Fix artifact-setup bug
This fixes the artifact-setup container to use the new `signal_status`
script created in b77f9e2910

Change-Id: Ia0958f9d1e7050d8d8f37b9d66f471fd35156e13
2021-09-20 14:04:10 -05:00

10 lines
320 B
Bash
Executable File

#!/bin/bash
# signal_status takes a container name and a status and creates a file in the
# "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"