@ -69,13 +69,9 @@ usage() {
}
case ${ACTION} in
"install")
get_image()
"install"|"upgrade")
do_install_detail
;;
"upgrade")
docker-compose -f /opt/docker2/compose/nodered-app/docker-compose.yml up -d
"rm")
APP_NAME="nodered"
IMAGE_NAME=$(uci get nodered.@nodered[0].image_name 2>/dev/null)
@ -86,6 +82,7 @@ case ${ACTION} in
docker rm $ID
done
docker rmi -f $IMAGE_NAME
rm -R /opt/docker2/compose/nodered-app
"start"|"stop"|"restart")