Compare commits

..

No commits in common. "53e5964633f4460870457d8ed005fe089c7447ff" and "63ed687b2c46cc359672f76f406e29067226a1c6" have entirely different histories.

3 changed files with 7 additions and 18 deletions

View File

@ -23,7 +23,7 @@ var_disk="4"
var_cpu="2" var_cpu="2"
var_ram="1024" var_ram="1024"
var_os="debian" var_os="debian"
var_version="12" var_version="11"
variables variables
color color
catch_errors catch_errors
@ -52,16 +52,13 @@ function default_settings() {
function update_script() { function update_script() {
header_info header_info
if [[ ! -f /etc/systemd/system/esphomeDashboard.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -f /usr/local/bin/esphome ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Stopping ESPHome" msg_info "Stopping ESPHome"
systemctl stop esphomeDashboard systemctl stop esphomeDashboard
msg_ok "Stopped ESPHome" msg_ok "Stopped ESPHome"
msg_info "Updating ESPHome" msg_info "Updating ESPHome"
if [[ -d /srv/esphome ]]; then pip3 install esphome --upgrade &>/dev/null
source /srv/esphome/bin/activate &>/dev/null
fi
pip3 install -U esphome &>/dev/null
msg_ok "Updated ESPHome" msg_ok "Updated ESPHome"
msg_info "Starting ESPHome" msg_info "Starting ESPHome"

View File

@ -23,7 +23,6 @@ $STD apt-get install -y \
dumb-init \ dumb-init \
gconf-service \ gconf-service \
libatk-bridge2.0-0 \ libatk-bridge2.0-0 \
libasound2 \
libatk1.0-0 \ libatk1.0-0 \
libcairo2 \ libcairo2 \
libcups2 \ libcups2 \

View File

@ -30,27 +30,20 @@ rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Updated Python3" msg_ok "Updated Python3"
msg_info "Installing ESPHome" msg_info "Installing ESPHome"
mkdir /srv/esphome
cd /srv/esphome
python3 -m venv .
source bin/activate
$STD pip install esphome tornado esptool $STD pip install esphome tornado esptool
msg_ok "Installed ESPHome" msg_ok "Installed ESPHome"
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/esphomeDashboard.service service_path="/etc/systemd/system/esphomeDashboard.service"
[Unit] echo "[Unit]
Description=ESPHome Dashboard Description=ESPHome Dashboard
After=network.target After=network.target
[Service] [Service]
ExecStart=/srv/esphome/bin/esphome dashboard /root/config/ ExecStart=/usr/local/bin/esphome dashboard /root/config/
Restart=always Restart=always
User=root User=root
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target" >$service_path
EOF
systemctl enable -q --now esphomeDashboard.service systemctl enable -q --now esphomeDashboard.service
msg_ok "Created Service" msg_ok "Created Service"