rpi.carlosedp.cluster-monit.../scripts/generate_ingress_auth.sh
2019-02-27 09:23:58 -03:00

6 lines
205 B
Bash
Executable File

#!/bin/bash
if [[ $# -eq 0 ]] ; then
echo "Run the script with the required auth user and namespace for the secret: ${0} [user] [namespace]"
exit 0
fi
printf "${1}:`openssl passwd -apr1`\n" >> auth