diff --git a/root/usr/libexec/apps/nodered/nodered.sh b/root/usr/libexec/apps/nodered/nodered.sh index 055d243..853c340 100644 --- a/root/usr/libexec/apps/nodered/nodered.sh +++ b/root/usr/libexec/apps/nodered/nodered.sh @@ -16,7 +16,7 @@ do_install_detail() { IMAGE_NAME=$(uci get nodered.@nodered[0].image_name 2>/dev/null) username=$(uci get nodered.@nodered[0].username 2>/dev/null) password=$(uci get nodered.@nodered[0].password 2>/dev/null) - + APP_NAME="nodered" GEN_PASS=$(< /dev/urandom tr -dc A-Za-z0-9 2>/dev/null | head -c14; echo) GEN_PASS2=$(< /dev/urandom tr -dc A-Za-z0-9 2>/dev/null | head -c14; echo) @@ -40,6 +40,7 @@ version: '3.7' services: nodered: image: $IMAGE_NAME + container_name: $APP_NAME restart: always ports: - ${LAN_IP}:$port:1880