Rainbond/hack/contrib/docker/grctl/entrypoint.sh
2020-02-14 16:26:42 +08:00

10 lines
235 B
Bash

#!/bin/bash
if [ "$1" = "bash" ];then
exec /bin/bash
elif [ "$1" = "version" ];then
echo "$RELEASE_DESC"
elif [ "$1" = "copy" ];then
cp -a /run/rainbond-grctl /rootfs/usr/local/bin/
else
exec /run/rainbond-grctl "$@"
fi