rpi.carlosedp.cluster-monit.../scripts/generate_ingress_auth.sh

6 lines
205 B
Bash
Raw Normal View History

#!/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