Restore original configuration for addons_updater and templates

This commit is contained in:
Alexandre
2025-10-17 15:16:17 +02:00
parent e89c9246e1
commit a69c1a217d
331 changed files with 10680 additions and 11747 deletions

View File

@@ -3,9 +3,9 @@
[![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium)
[![Donate][paypal-badge]](https://www.paypal.com/donate/?hosted_button_id=DZFULJZTP3UQA)
![Version](https://img.shields.io/badge/dynamic/json?label=Version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Falexbelgium%2Fhassio-addons%2Fmaster%2Fjoal%2Fconfig.json)
![Ingress](https://img.shields.io/badge/dynamic/json?label=Ingress&query=%24.ingress&url=https%3A%2F%2Fraw.githubusercontent.com%2Falexbelgium%2Fhassio-addons%2Fmaster%2Fjoal%2Fconfig.json)
![Arch](https://img.shields.io/badge/dynamic/json?color=success&label=Arch&query=%24.arch&url=https%3A%2F%2Fraw.githubusercontent.com%2Falexbelgium%2Fhassio-addons%2Fmaster%2Fjoal%2Fconfig.json)
![Version](https://img.shields.io/badge/dynamic/yaml?label=Version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Falexbelgium%2Fhassio-addons%2Fmaster%2Fjoal%2Fconfig.yaml)
![Ingress](https://img.shields.io/badge/dynamic/yaml?label=Ingress&query=%24.ingress&url=https%3A%2F%2Fraw.githubusercontent.com%2Falexbelgium%2Fhassio-addons%2Fmaster%2Fjoal%2Fconfig.yaml)
![Arch](https://img.shields.io/badge/dynamic/yaml?color=success&label=Arch&query=%24.arch&url=https%3A%2F%2Fraw.githubusercontent.com%2Falexbelgium%2Fhassio-addons%2Fmaster%2Fjoal%2Fconfig.yaml)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/9c6cf10bdbba45ecb202d7f579b5be0e)](https://www.codacy.com/gh/alexbelgium/hassio-addons/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexbelgium/hassio-addons&utm_campaign=Badge_Grade)
[![GitHub Super-Linter](https://img.shields.io/github/actions/workflow/status/alexbelgium/hassio-addons/weekly-supelinter.yaml?label=Lint%20code%20base)](https://github.com/alexbelgium/hassio-addons/actions/workflows/weekly-supelinter.yaml)

View File

@@ -1,41 +0,0 @@
{
"arch": [
"aarch64",
"amd64",
"armv7"
],
"codenotary": "alexandrep.github@gmail.com",
"description": "An open source command line RatioMaster with WebUI",
"hassio_api": true,
"image": "ghcr.io/alexbelgium/joal-{arch}",
"ingress": true,
"map": [
"config:rw"
],
"name": "Joal",
"options": {
"run_duration": "12h",
"secret_token": "lrMY24Byhx",
"ui_path": "joal"
},
"panel_admin": false,
"panel_icon": "mdi:owl",
"ports": {
"49152/tcp": null,
"8081/tcp": 8091
},
"ports_description": {
"49152/tcp": "torrent port (not required)",
"8081/tcp": "Web UI port (required)"
},
"schema": {
"run_duration": "str?",
"secret_token": "str",
"ui_path": "str",
"verbose": "bool?"
},
"slug": "joal",
"udev": true,
"url": "https://github.com/alexbelgium/hassio-addons",
"version": "2.1.36-3"
}

33
joal/config.yaml Normal file
View File

@@ -0,0 +1,33 @@
arch:
- aarch64
- amd64
- armv7
codenotary: alexandrep.github@gmail.com
description: An open source command line RatioMaster with WebUI
hassio_api: true
image: ghcr.io/alexbelgium/joal-{arch}
ingress: true
map:
- config:rw
name: Joal
options:
run_duration: 12h
secret_token: lrMY24Byhx
ui_path: joal
panel_admin: false
panel_icon: mdi:owl
ports:
49152/tcp: null
8081/tcp: 8091
ports_description:
49152/tcp: torrent port (not required)
8081/tcp: Web UI port (required)
schema:
run_duration: str?
secret_token: str
ui_path: str
verbose: bool?
slug: joal
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: 2.1.36-3

View File

@@ -34,14 +34,14 @@ bashio::log.info "Joal updated"
##################
# If config doesn't exist, create it
if [ ! -f /config/addons_config/joal/config.json ]; then
if [ ! -f /config/addons_config/joal/config.yaml ]; then
bashio::log.info "Symlinking config files"
mkdir -p /config/addons_config/joal
cp /data/joal/config.json /config/addons_config/joal/config.json
cp /data/joal/config.yaml /config/addons_config/joal/config.yaml
fi
# Refresh symlink
ln -sf /config/addons_config/joal/config.json /data/joal/config.json
ln -sf /config/addons_config/joal/config.yaml /data/joal/config.yaml
###############
# SET VARIABLES #