浏览代码

Update alpine-esphome.sh

tweak update
tteckster 2 年之前
父节点
当前提交
86ec03dc35
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      ct/alpine-esphome.sh

+ 4 - 1
ct/alpine-esphome.sh

@@ -66,7 +66,10 @@ function update_script() {
     header_info
     case $CHOICE in
     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
       ;;
     esac