mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04: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
|
||||
|
||||
## 5.2.0
|
||||
|
||||
- Add git option which allows disabling the (default) git initialization
|
||||
|
||||
## 5.1.0
|
||||
|
||||
- Update base image to Alpine 3.12
|
||||
|
||||
@@ -24,6 +24,7 @@ Add-on configuration:
|
||||
```yaml
|
||||
dirsfirst: false
|
||||
enforce_basepath: false
|
||||
git: true
|
||||
ignore_pattern:
|
||||
- __pycache__
|
||||
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.
|
||||
|
||||
### Option: `git` (required)
|
||||
|
||||
If set to `true`, add-on will initialize git for directories which support it.
|
||||
|
||||
### Option: `ignore_pattern` (required)
|
||||
|
||||
This option allows you to hide files and folders from the file browser tree.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "File editor",
|
||||
"version": "5.1.0",
|
||||
"version": "5.2.0",
|
||||
"slug": "configurator",
|
||||
"description": "Simple browser-based file editor for Home Assistant",
|
||||
"url": "https://github.com/home-assistant/hassio-addons/tree/master/configurator",
|
||||
@@ -16,12 +16,14 @@
|
||||
"options": {
|
||||
"dirsfirst": false,
|
||||
"enforce_basepath": true,
|
||||
"git": true,
|
||||
"ignore_pattern": ["__pycache__", ".cloud", ".storage", "deps"],
|
||||
"ssh_keys": []
|
||||
},
|
||||
"schema": {
|
||||
"dirsfirst": "bool",
|
||||
"enforce_basepath": "bool",
|
||||
"git": "bool",
|
||||
"ignore_pattern": ["str"],
|
||||
"ssh_keys": ["str"]
|
||||
},
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
# ==============================================================================
|
||||
export HC_DIRSFIRST
|
||||
export HC_ENFORCE_BASEPATH
|
||||
export HC_GIT
|
||||
export HC_HASS_API_PASSWORD
|
||||
export HC_IGNORE_PATTERN
|
||||
|
||||
@@ -27,6 +28,7 @@ fi
|
||||
# Setup and run configurator
|
||||
HC_DIRSFIRST=$(bashio::config 'dirsfirst')
|
||||
HC_ENFORCE_BASEPATH=$(bashio::config 'enforce_basepath')
|
||||
HC_GIT=$(bashio::config 'git')
|
||||
HC_HASS_API_PASSWORD="${SUPERVISOR_TOKEN}"
|
||||
HC_IGNORE_PATTERN="$(bashio::config 'ignore_pattern | join(",")')"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user