genieacs-services/run_with_env.sh

10 lines
96 B
Bash

#!/bin/bash
ENV_FILE="$1"
CMD=${@:2}
set -o allexport
source $ENV_FILE
set +o allexport
$CMD