#!/bin/bash set -eu # check to see if the enf file exists. exist if not. if [ ! -d "$SITE_PATH" ]; then echo "ERROR: '$SITE_PATH' does not exist." exit 1 fi function new_pass { apg -a 1 -M nc -n 3 -m 26 -E GHIJKLMNOPQRSTUVWXYZ | head -n1 | awk '{print $1;}' } # check to see if the enf file exists. exist if not. SITE_DEFINITION_PATH="$SITE_PATH/site_definition" if [ ! -f "$SITE_DEFINITION_PATH" ]; then echo "WARNING: '$SITE_DEFINITION_PATH' does not exist! We have stubbed one out for you, but you need to UPDATE IT!" # stub out a site_definition with new passwords. cat >"$SITE_DEFINITION_PATH" <