mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
commit
ed6e158f7f
6 changed files with 9 additions and 6 deletions
|
@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
|||
|
||||
Home automation platform
|
||||
|
||||
**Shipped version:** 2021.11.5~ynh1
|
||||
**Shipped version:** 2021.12.7~ynh1
|
||||
|
||||
**Demo:** https://demo.home-assistant.io
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
|
|||
|
||||
Plateforme domotique
|
||||
|
||||
**Version incluse :** 2021.11.5~ynh1
|
||||
**Version incluse :** 2021.12.7~ynh1
|
||||
|
||||
**Démo :** https://demo.home-assistant.io
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "Home automation platform",
|
||||
"fr": "Plateforme domotique"
|
||||
},
|
||||
"version": "2021.11.5~ynh1",
|
||||
"version": "2021.12.7~ynh1",
|
||||
"url": "https://github.com/home-assistant/home-assistant",
|
||||
"upstream": {
|
||||
"license": "Apache-2.0",
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#
|
||||
|
||||
# Release to install
|
||||
VERSION=2021.11.5
|
||||
VERSION=2021.12.7
|
||||
|
||||
# Package dependencies
|
||||
PKG_DEPENDENCIES="python3 python3-dev python3-venv python3-pip libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff5"
|
||||
|
@ -13,6 +13,9 @@ PKG_DEPENDENCIES="python3 python3-dev python3-venv python3-pip libffi-dev libssl
|
|||
# Pyhton 3.9.2 will be shiped with bullseye
|
||||
PY_REQUIRED_VERSION=3.9.2
|
||||
|
||||
# System groups allowed to homeassistant user
|
||||
USER_GROUPS="dialout gpio i2c"
|
||||
|
||||
# Check if directory/file already exists (path in argument)
|
||||
myynh_check_path () {
|
||||
[ -z "$1" ] && ynh_die "No argument supplied"
|
||||
|
|
|
@ -41,7 +41,7 @@ ynh_app_setting_set --app="$app" --key=path_url --value="$path_url"
|
|||
|
||||
# create a dedicated system user
|
||||
ynh_script_progression --message="Creating dedicated user, rights and folders..."
|
||||
ynh_system_user_create --username="$app"
|
||||
ynh_system_user_create --username="$app" --groups="$USER_GROUPS"
|
||||
|
||||
# create a directory for the installation of Home Assistant
|
||||
myynh_create_dir "$final_path"
|
||||
|
|
|
@ -34,7 +34,7 @@ ynh_exec_warn_less yunohost firewall allow TCP $port
|
|||
|
||||
# restore dedicated system user
|
||||
ynh_script_progression --message="Restoring dedicated user and rights folders..."
|
||||
ynh_system_user_create --username="$app"
|
||||
ynh_system_user_create --username="$app" --groups="$USER_GROUPS"
|
||||
ynh_restore_file --origin_path="/etc/sudoers.d/$app"
|
||||
|
||||
# restore source
|
||||
|
|
Loading…
Add table
Reference in a new issue