Update 'root/usr/libexec/apps/nodered/nodered.sh'

main
ben 1 year ago
parent bd68d11f48
commit 77b3c203c5

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

Loading…
Cancel
Save