uci-nextcloud/update

7 lines
239 B
Plaintext
Raw Normal View History

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