mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-25 01:10:12 +02:00
Compare commits
4 Commits
5876343a32
...
b97d9c16da
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b97d9c16da | ||
|
|
f7d877b84e | ||
|
|
4624ab8aa2 | ||
|
|
a5eb85a8fd |
14
README.md
14
README.md
@@ -57,13 +57,13 @@ If you want to do add the repository manually, please follow the procedure highl
|
||||
### Number of addons
|
||||
|
||||
- In the repository : 121
|
||||
- Installed : 69094
|
||||
- Installed : 77528
|
||||
|
||||
### Top 3
|
||||
|
||||
1. Filebrowser (8649x)
|
||||
2. Portainer (4066x)
|
||||
3. Netalertx (3804x)
|
||||
1. Filebrowser (11110x)
|
||||
2. Portainer (4539x)
|
||||
3. Netalertx (4492x)
|
||||
|
||||
### Architectures used
|
||||
|
||||
@@ -278,7 +278,7 @@ If you want to do add the repository manually, please follow the procedure highl
|
||||
![amd64][amd64-badge]
|
||||
![ingress][ingress-badge]
|
||||
|
||||
✓  [Filebrowser (8649x)](filebrowser/) : filebrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files
|
||||
✓  [Filebrowser (11110x)](filebrowser/) : filebrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files
|
||||
|
||||
  
|
||||

|
||||
@@ -641,7 +641,7 @@ If you want to do add the repository manually, please follow the procedure highl
|
||||
![aarch64][aarch64-badge]
|
||||
![amd64][amd64-badge]
|
||||
|
||||
✓  [Portainer (4066x)](portainer/) : Manage your Docker environment with ease
|
||||
✓  [Portainer (4539x)](portainer/) : Manage your Docker environment with ease
|
||||
|
||||
  
|
||||

|
||||
@@ -649,7 +649,7 @@ If you want to do add the repository manually, please follow the procedure highl
|
||||
![amd64][amd64-badge]
|
||||
![ingress][ingress-badge]
|
||||
|
||||
✓ [Portainer (4066x) Agent](portainer_agent/) : An agent used to manage all the resources in a Swarm cluster
|
||||
✓ [Portainer (4539x) Agent](portainer_agent/) : An agent used to manage all the resources in a Swarm cluster
|
||||
|
||||
  
|
||||

|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
|
||||
## 12.0.18 (2026-03-20)
|
||||
- Fix `env_vars` handling so extra environment variables are exported correctly.
|
||||
|
||||
## 12.0.17 (2026-03-12)
|
||||
- Ensure `SERVICE_URL` and `FILE_SERVER_ROOT` are written to the active Seafile config path.
|
||||
|
||||
|
||||
@@ -128,5 +128,5 @@ services:
|
||||
slug: seafile
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/seafile
|
||||
version: "12.0.17"
|
||||
version: "12.0.18"
|
||||
webui: http://[HOST]:[PORT:8000]
|
||||
|
||||
@@ -17,6 +17,9 @@ JSONSOURCE="/data/options.json"
|
||||
mapfile -t arr < <(jq -r 'keys[]' "${JSONSOURCE}")
|
||||
|
||||
for KEYS in "${arr[@]}"; do
|
||||
if [[ "${KEYS}" == "env_vars" ]]; then
|
||||
continue
|
||||
fi
|
||||
# export key
|
||||
VALUE=$(jq ."$KEYS" "${JSONSOURCE}")
|
||||
line="${KEYS}='${VALUE//[\"\']/}'"
|
||||
@@ -33,6 +36,32 @@ for KEYS in "${arr[@]}"; do
|
||||
find /opt/seafile -name '*.sh' -print0 | xargs -0 sed -i "1a export $line"
|
||||
done
|
||||
|
||||
#######################################
|
||||
# Apply extra environment variables #
|
||||
#######################################
|
||||
|
||||
if jq -e '.env_vars? | length > 0' "${JSONSOURCE}" >/dev/null; then
|
||||
bashio::log.info "Applying env_vars"
|
||||
while IFS=$'\t' read -r ENV_NAME ENV_VALUE; do
|
||||
if [[ -z "${ENV_NAME}" || "${ENV_NAME}" == "null" ]]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
if bashio::config.false "verbose" || [[ "${ENV_NAME}" == *"PASS"* ]]; then
|
||||
bashio::log.blue "${ENV_NAME}=******"
|
||||
else
|
||||
bashio::log.blue "${ENV_NAME}=${ENV_VALUE}"
|
||||
fi
|
||||
|
||||
export "${ENV_NAME}=${ENV_VALUE}"
|
||||
|
||||
ENV_VALUE_ESCAPED=$(printf "%q" "${ENV_VALUE}")
|
||||
ENV_LINE="export ${ENV_NAME}=${ENV_VALUE_ESCAPED}"
|
||||
sed -i "1a ${ENV_LINE}" /home/seafile/*.sh 2>/dev/null
|
||||
find /opt/seafile -name '*.sh' -print0 | xargs -0 sed -i "1a ${ENV_LINE}"
|
||||
done < <(jq -r '.env_vars[] | [.name, .value] | @tsv' "${JSONSOURCE}")
|
||||
fi
|
||||
|
||||
#################
|
||||
# DATA_LOCATION #
|
||||
#################
|
||||
|
||||
Reference in New Issue
Block a user