sysfiles/opt/registry/generate-pw.sh

6 lines
140 B
Bash
Executable File

#!/bin/bash
username="${1:?Missing username}"
docker run --rm -it alpine sh -c "apk add apache2-utils >/dev/null; htpasswd -Bn $username"