uci-nextcloud/update

7 lines
239 B
Bash
Executable File

#!/bin/bash
[[ $1 ]] && ENV_FILE=${1}.env || ENV_FILE=.env
export ENV_FILE; docker-compose --env-file $ENV_FILE down
docker-compose pull
export ENV_FILE; docker-compose --env-file $ENV_FILE up --remove-orphans -d
yes | docker image prune