mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Add default phone region https://github.com/alexbelgium/hassio-addons/issues/981
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
- Fit : new variable "default_phone_region" https://github.com/alexbelgium/hassio-addons/issues/981
|
||||
|
||||
### 27.0.2-3 (24-08-2023)
|
||||
- Fix : healthcheck timeouts @https://github.com/alexbelgium/hassio-addons/issues/956
|
||||
- Fix : nginx timeouts
|
||||
|
||||
@@ -35,6 +35,7 @@ Scripts with .sh ending located in /config/addons_config/nextcloud will be execu
|
||||
### Addon options
|
||||
|
||||
```yaml
|
||||
default_phone_region: EN # Define the default phone region according to https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
|
||||
disable_updates: prevent automatic apps updating along addon
|
||||
additional_apps: vim,nextcloud #specify additional apk files to install ; separated by commas
|
||||
PGID/PUID: 1000 #allows setting user.
|
||||
|
||||
@@ -99,6 +99,7 @@
|
||||
"DAC_READ_SEARCH"
|
||||
],
|
||||
"schema": {
|
||||
"default_phone_region": "match(^[A-Z]{2}$)?",
|
||||
"Full_Text_Search": "bool?",
|
||||
"OCR": "bool?",
|
||||
"OCRLANG": "str?",
|
||||
@@ -124,6 +125,6 @@
|
||||
"slug": "nextcloud_ocr",
|
||||
"uart": true,
|
||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/nextcloud",
|
||||
"version": "27.0.2-3",
|
||||
"version": "27.0.2-4",
|
||||
"webui": "https://[HOST]:[PORT:443]"
|
||||
}
|
||||
}
|
||||
@@ -87,3 +87,11 @@ sudo -u abc -s /bin/bash -c "php /data/app/www/public/occ maintenance:mode --off
|
||||
sudo -u abc php /data/app/www/public/occ app:remove --no-interaction "richdocumentscode" &>/dev/null || true
|
||||
sudo -u abc php /data/app/www/public/occ app:remove --no-interaction "richdocumentscode_arm64" &>/dev/null || true
|
||||
sudo -u abc php /data/app/www/public/occ app:remove --no-interaction "richdocumentscode_amd64" &>/dev/null || true
|
||||
|
||||
################
|
||||
# DEFINE PHONE #
|
||||
################
|
||||
|
||||
if bashio::config.has_value "default_phone_region"; then
|
||||
sudo -u abc php /data/app/www/public/occ config:system:set default_phone_region --value="$(bashio::config "default_phone_region")"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user