mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
commit
7ca85d997c
7 changed files with 23 additions and 17 deletions
8
.github/workflows/updater.sh
vendored
8
.github/workflows/updater.sh
vendored
|
@ -50,8 +50,14 @@ sed -i "s/^app_version=.*/app_version=$upstream_version/" scripts/_common.sh
|
|||
# Replace python required version
|
||||
py_required_major=$(curl -Ls https://pypi.org/pypi/$app/json | jq -r .info.requires_python | cut -d '=' -f 2 | rev | cut -d"." -f2- | rev)
|
||||
py_required_minor=$(curl -s "https://www.python.org/ftp/python/" | grep ">$py_required_major" | cut -d '/' -f 2 | cut -d '>' -f 2 | sort -rV | head -n 1)
|
||||
current_py_required_minor=$(cat scripts/_common.sh | grep "py_required_version=" | cut -d '=' -f 2)
|
||||
if ! dpkg --compare-versions "$current_py_required_minor" "lt" "$py_required_minor"
|
||||
then
|
||||
echo "::warning :: No need to update required python version"
|
||||
else
|
||||
echo "::warning :: Updating required python version to new upstream python version"
|
||||
sed -i "s/^py_required_version=.*/py_required_version=$py_required_minor/" scripts/_common.sh
|
||||
|
||||
fi
|
||||
# Replace pip required version
|
||||
pip_required=$(curl -Ls https://pypi.org/pypi/$app/json | jq -r .info.requires_dist[] | grep "pip") #"pip (<23.1,>=21.0)"
|
||||
sed -i "s/^pip_required=.*/pip_required=\"$pip_required\"/" scripts/_common.sh
|
||||
|
|
|
@ -29,7 +29,7 @@ Open source home automation that puts local control and privacy first. Powered b
|
|||
- Home Energy Management."
|
||||
|
||||
|
||||
**Shipped version:** 2023.6.0~ynh1
|
||||
**Shipped version:** 2023.6.1~ynh1
|
||||
|
||||
**Demo:** https://demo.home-assistant.io
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ Open source home automation that puts local control and privacy first. Powered b
|
|||
- Home Energy Management."
|
||||
|
||||
|
||||
**Version incluse :** 2023.6.0~ynh1
|
||||
**Version incluse :** 2023.6.1~ynh1
|
||||
|
||||
**Démo :** https://demo.home-assistant.io
|
||||
|
||||
|
|
|
@ -31,10 +31,9 @@ automation: !include automations.yaml
|
|||
script: !include scripts.yaml
|
||||
scene: !include scenes.yaml
|
||||
|
||||
# Switches
|
||||
switch:
|
||||
- platform: command_line
|
||||
switches:
|
||||
upgrade_homeassistant:
|
||||
command_on: "nohup bash -c __DATA_DIR__/bin/upgrade_homeassistant.sh $1 > /dev/null 2>&1 &"
|
||||
friendly_name: Upgrade Home Assistant
|
||||
# Sensors
|
||||
sensor:
|
||||
- platform: fail2ban
|
||||
jails:
|
||||
- __APP__
|
||||
file_path: /var/log/__APP__/__APP__.log
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# see https://github.com/home-assistant/addons/blob/master/nginx_proxy/data/nginx.conf
|
||||
# see https://github.com/home-assistant/addons/blob/master/nginx_proxy/rootfs/etc/nginx.conf
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:__PORT__;
|
||||
|
@ -7,7 +7,8 @@ location / {
|
|||
proxy_http_version 1.1;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
include conf.d/yunohost_panel.conf.inc;
|
||||
|
|
|
@ -5,7 +5,7 @@ name = "Home Assistant"
|
|||
description.en = "Home automation platform"
|
||||
description.fr = "Plateforme domotique"
|
||||
|
||||
version = "2023.6.0~ynh1"
|
||||
version = "2023.6.1~ynh1"
|
||||
|
||||
maintainers = ["ewilly"]
|
||||
|
||||
|
@ -97,7 +97,7 @@ ram.runtime = "2G"
|
|||
main.default = 8123
|
||||
|
||||
[resources.apt]
|
||||
packages = "mariadb-server python3, python3-dev, python3-venv, python3-pip, libffi-dev, libssl-dev, libjpeg-dev, zlib1g-dev, autoconf, build-essential, libopenjp2-7, libtiff5, libturbojpeg0, libmariadb-dev, libmariadb-dev-compat, rustc, tk-dev, libncurses5-dev, libncursesw5-dev, libreadline6-dev, libdb5.3-dev, libgdbm-dev, libsqlite3-dev, libbz2-dev, libexpat1-dev, liblzma-dev, wget, tar, libnss3-dev, libreadline-dev"
|
||||
packages = "mariadb-server python3, python3-dev, python3-venv, python3-pip, libffi-dev, libssl-dev, libjpeg-dev, zlib1g-dev, autoconf, build-essential, libopenjp2-7, libtiff5, libturbojpeg0, libmariadb-dev, libmariadb-dev-compat, rustc, tk-dev, libncurses5-dev, libncursesw5-dev, libreadline6-dev, libdb5.3-dev, libgdbm-dev, libsqlite3-dev, libbz2-dev, libexpat1-dev, liblzma-dev, wget, tar, libnss3-dev, libreadline-dev, ffmpeg"
|
||||
|
||||
[resources.database]
|
||||
type = "mysql"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#=================================================
|
||||
|
||||
# Release to install
|
||||
app_version=2023.6.0
|
||||
app_version=2023.6.1
|
||||
|
||||
# Requirements
|
||||
py_required_version=3.11.4
|
||||
|
|
Loading…
Add table
Reference in a new issue