#!/bin/bash if [ -z "$1" ]; then echo "Use: $0 VARIABLE_NAME (VALUE)" exit 1 fi VARIABLE_NAME=$1 ENV_FILE="/data/secrets/$SERVER_DOMAIN/$SERVER_DOMAIN.env" # Password gen: 20chars,0-9,a-z generate_random_password() { #tr -dc 'a-z0-9' > "$ENV_FILE" fi trap - ERR echo "Variable $VARIABLE_NAME successfully updated/added to $ENV_FILE"