uci-docker-nextcloud/deploy/dcp

14 lines
245 B
Bash
Executable File

#!/bin/bash
dcp() {
if envf=$(./env_file $1); then
export ENV_FILE=$envf
echo "export ENV_FILE=$envf; docker compose --env-file $envf "
else
return 1
fi
}
# # if script was executed then call the function
(return 0 2>/dev/null) || dcp $@