12 lines
434 B
Plaintext
12 lines
434 B
Plaintext
|
#!/bin/bash
|
||
|
[[ ! $1 ]] && echo "no app set, usage upgrade <nodered app>" && exit
|
||
|
SDIR=$(cd $(dirname $(readlink -f "$0")) >/dev/null 2>&1 ; pwd -P)
|
||
|
env_file=$SDIR/apps/docker.${1}.env
|
||
|
echo $env_file
|
||
|
[[ ! -f "$env_file" ]] && echo file does not exist && $SDIR/make-env-file $1 && echo making env file from cfg
|
||
|
cat $env_file
|
||
|
# -p for separate container instances
|
||
|
docker-compose -p $1 --env-file $env_file pull
|
||
|
source $SDIR/restart $1
|
||
|
|