uci-docker-nextcloud/deploy/dcp

14 lines
245 B
Plaintext
Raw Normal View History

2024-09-12 16:21:59 -07:00
#!/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 $@