This repository has been archived on 2025-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
Files
docker-salt-master/entrypoint.sh
2018-09-30 23:56:22 +02:00

31 lines
560 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source "${SALT_RUNTIME_DIR}/functions.sh"
[[ ${DEBUG} == true ]] && set -x
case ${1} in
app:start)
configure_salt_master
case ${1} in
app:start)
copy_minion_keys
echo "Starting salt-master..."
exec salt-master
;;
esac
;;
app:help)
echo "Available options:"
echo " app:start - Start salt-master service. (default)"
echo " app:help - Displays this help."
echo " [command] - Execute the specified command, eg. bash."
;;
*)
exec "$@"
;;
esac