#!/usr/bin/env bash
MODE="$1"
display_usage() {
echo "This script takes one arguments."
echo -e "\nUsage: ${0} <interactive|batch|both>\n"
}
if [[ "${MODE}" = "help" ]]
then
display_usage
exit 0
fi
cat << "EOF"
__ __
/ \ / \ ______ _ _ __ __ __
/ /\ / /\ \ / __ \ | | | | / \ \ \ / /
/ / / / \ \ | | | | | | | | / /\ \ \ /
\ \ \ \ / / | |__| | | |__| | / ____ \ | |
\ \/ \ \/ / \_ ___/ \____/ /_/ \_\ |_|
\__/ \__/ \ \__
\___\ by Red Hat
Build, Store, and Distribute your Containers
EOF
venv/bin/python -m displayversion
case "$MODE" in
"interactive")
echo "Copying $MODE files"
cp -r ${QUAYCONF}/init/service/interactive/* /etc/service
;;
"batch")
cp -r ${QUAYCONF}/init/service/batch/* /etc/service
*)
echo "Copying all files"
esac
/sbin/my_init