Add support for mapping user uid/gid

This commit is contained in:
Carlos Álvaro
2018-10-03 20:14:54 +02:00
parent 080df756a0
commit 8bf6edc229
5 changed files with 105 additions and 48 deletions

View File

@@ -8,17 +8,13 @@ source "${SALT_RUNTIME_DIR}/functions.sh"
case ${1} in
app:start|app:init|app:gen-signed-keys)
configure_salt_master
initialize_system
case ${1} in
app:start)
setup_keys
echo "Starting salt-master..."
exec salt-master
;;
app:init)
setup_keys
;;
app:gen-signed-keys)
shift 1
gen_signed_keys ${1}
@@ -28,7 +24,6 @@ case ${1} in
app:help)
echo "Available options:"
echo " app:start - Start salt-master service. (default)"
echo " app:init - Setup salt-master without launching the service."
echo " app:gen-signed-keys <key_name> - Create a master_sign key pair and its signature inside ${SALT_KEYS_DIR}/generated/"
echo " app:help - Displays this help."
echo " [command] - Execute the specified command, eg. bash."