mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 13:14:21 +01:00
Allow Configurator to skip git initialization (#1669)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 5.2.0
|
||||||
|
|
||||||
|
- Add git option which allows disabling the (default) git initialization
|
||||||
|
|
||||||
## 5.1.0
|
## 5.1.0
|
||||||
|
|
||||||
- Update base image to Alpine 3.12
|
- Update base image to Alpine 3.12
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ Add-on configuration:
|
|||||||
```yaml
|
```yaml
|
||||||
dirsfirst: false
|
dirsfirst: false
|
||||||
enforce_basepath: false
|
enforce_basepath: false
|
||||||
|
git: true
|
||||||
ignore_pattern:
|
ignore_pattern:
|
||||||
- __pycache__
|
- __pycache__
|
||||||
ssh_keys: []
|
ssh_keys: []
|
||||||
@@ -39,6 +40,10 @@ Set it to `true` to list directories first, `false` otherwise.
|
|||||||
|
|
||||||
If set to `true`, access is limited to files within the `/config` directory.
|
If set to `true`, access is limited to files within the `/config` directory.
|
||||||
|
|
||||||
|
### Option: `git` (required)
|
||||||
|
|
||||||
|
If set to `true`, add-on will initialize git for directories which support it.
|
||||||
|
|
||||||
### Option: `ignore_pattern` (required)
|
### Option: `ignore_pattern` (required)
|
||||||
|
|
||||||
This option allows you to hide files and folders from the file browser tree.
|
This option allows you to hide files and folders from the file browser tree.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "File editor",
|
"name": "File editor",
|
||||||
"version": "5.1.0",
|
"version": "5.2.0",
|
||||||
"slug": "configurator",
|
"slug": "configurator",
|
||||||
"description": "Simple browser-based file editor for Home Assistant",
|
"description": "Simple browser-based file editor for Home Assistant",
|
||||||
"url": "https://github.com/home-assistant/hassio-addons/tree/master/configurator",
|
"url": "https://github.com/home-assistant/hassio-addons/tree/master/configurator",
|
||||||
@@ -16,12 +16,14 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"dirsfirst": false,
|
"dirsfirst": false,
|
||||||
"enforce_basepath": true,
|
"enforce_basepath": true,
|
||||||
|
"git": true,
|
||||||
"ignore_pattern": ["__pycache__", ".cloud", ".storage", "deps"],
|
"ignore_pattern": ["__pycache__", ".cloud", ".storage", "deps"],
|
||||||
"ssh_keys": []
|
"ssh_keys": []
|
||||||
},
|
},
|
||||||
"schema": {
|
"schema": {
|
||||||
"dirsfirst": "bool",
|
"dirsfirst": "bool",
|
||||||
"enforce_basepath": "bool",
|
"enforce_basepath": "bool",
|
||||||
|
"git": "bool",
|
||||||
"ignore_pattern": ["str"],
|
"ignore_pattern": ["str"],
|
||||||
"ssh_keys": ["str"]
|
"ssh_keys": ["str"]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
export HC_DIRSFIRST
|
export HC_DIRSFIRST
|
||||||
export HC_ENFORCE_BASEPATH
|
export HC_ENFORCE_BASEPATH
|
||||||
|
export HC_GIT
|
||||||
export HC_HASS_API_PASSWORD
|
export HC_HASS_API_PASSWORD
|
||||||
export HC_IGNORE_PATTERN
|
export HC_IGNORE_PATTERN
|
||||||
|
|
||||||
@@ -27,6 +28,7 @@ fi
|
|||||||
# Setup and run configurator
|
# Setup and run configurator
|
||||||
HC_DIRSFIRST=$(bashio::config 'dirsfirst')
|
HC_DIRSFIRST=$(bashio::config 'dirsfirst')
|
||||||
HC_ENFORCE_BASEPATH=$(bashio::config 'enforce_basepath')
|
HC_ENFORCE_BASEPATH=$(bashio::config 'enforce_basepath')
|
||||||
|
HC_GIT=$(bashio::config 'git')
|
||||||
HC_HASS_API_PASSWORD="${SUPERVISOR_TOKEN}"
|
HC_HASS_API_PASSWORD="${SUPERVISOR_TOKEN}"
|
||||||
HC_IGNORE_PATTERN="$(bashio::config 'ignore_pattern | join(",")')"
|
HC_IGNORE_PATTERN="$(bashio::config 'ignore_pattern | join(",")')"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user