#!/bin/sh # Check we got users if [ ! -f 'users.txt' ] ; then echo "Missing file users.txt" exit -1 fi # Generate passwords if not done yet function genPassowrd () { tr -dc A-Za-z0-9 > passwords.txt done fi # Start watever the container should be doing $@