소스 검색

Update homeassistant-core-v5-install.sh

Pre-Initialize
tteckster 2 년 전
부모
커밋
ee99360c80
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      install/homeassistant-core-v5-install.sh

+ 2 - 1
install/homeassistant-core-v5-install.sh

@@ -146,6 +146,7 @@ $STD python3 -m pip install wheel
 $STD pip install mysqlclient
 $STD pip install psycopg2-binary
 $STD pip install homeassistant
+mkdir -p /root/.homeassistant
 msg_ok "Installed Home Assistant-Core"
 
 msg_info "Creating Service"
@@ -161,7 +162,7 @@ RestartForceExitStatus=100
 [Install]
 WantedBy=multi-user.target
 EOF
-$STD systemctl enable homeassistant
+$STD systemctl enable --now homeassistant
 msg_ok "Created Service"
 
 PASS=$(grep -w "root" /etc/shadow | cut -b6)