Pārlūkot izejas kodu

Update alpine-esphome.sh

tweak update
tteckster 2 gadi atpakaļ
vecāks
revīzija
86ec03dc35
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      ct/alpine-esphome.sh

+ 4 - 1
ct/alpine-esphome.sh

@@ -66,7 +66,10 @@ function update_script() {
     header_info
     header_info
     case $CHOICE in
     case $CHOICE in
     1)
     1)
-      pip3 install esphome --upgrade
+      msg_info "Updating ESPHome"
+      pip3 install esphome --upgrade &>/dev/null
+      rc-service -q esphome restart
+      msg_ok "Updated Successfully!"
       exit
       exit
       ;;
       ;;
     esac
     esac