From f5127e52414cdc555c1394f3fd31e987f68ebf86 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sun, 3 Nov 2024 15:14:46 +0100 Subject: [PATCH] Clean --- zzz_test/CHANGELOG.md | 172 ------------------ zzz_test/Dockerfile | 142 --------------- zzz_test/README.md | 124 ------------- zzz_test/apparmor.txt | 59 ------ zzz_test/build.json | 9 - zzz_test/config.json | 117 ------------ zzz_test/icon.png | Bin 3628 -> 0 bytes zzz_test/logo.png | Bin 3628 -> 0 bytes zzz_test/rootfs/etc/cont-init.d/31-nginx.sh | 33 ---- zzz_test/rootfs/etc/nginx/includes/mime.types | 96 ---------- .../etc/nginx/includes/proxy_params.conf | 16 -- .../rootfs/etc/nginx/includes/resolver.conf | 1 - .../etc/nginx/includes/server_params.conf | 6 - .../rootfs/etc/nginx/includes/ssl_params.conf | 9 - .../rootfs/etc/nginx/includes/upstream.conf | 3 - zzz_test/rootfs/etc/nginx/nginx.conf | 78 -------- .../rootfs/etc/nginx/servers/ingress.conf | 40 ---- zzz_test/rootfs/etc/nginx/servers/ssl.conf | 35 ---- zzz_test/rootfs/run.txt | 125 ------------- zzz_test/stats.png | Bin 1628 -> 0 bytes zzz_test/updater.json | 11 -- 21 files changed, 1076 deletions(-) delete mode 100644 zzz_test/CHANGELOG.md delete mode 100644 zzz_test/Dockerfile delete mode 100644 zzz_test/README.md delete mode 100644 zzz_test/apparmor.txt delete mode 100644 zzz_test/build.json delete mode 100644 zzz_test/config.json delete mode 100644 zzz_test/icon.png delete mode 100644 zzz_test/logo.png delete mode 100755 zzz_test/rootfs/etc/cont-init.d/31-nginx.sh delete mode 100644 zzz_test/rootfs/etc/nginx/includes/mime.types delete mode 100644 zzz_test/rootfs/etc/nginx/includes/proxy_params.conf delete mode 100644 zzz_test/rootfs/etc/nginx/includes/resolver.conf delete mode 100644 zzz_test/rootfs/etc/nginx/includes/server_params.conf delete mode 100644 zzz_test/rootfs/etc/nginx/includes/ssl_params.conf delete mode 100644 zzz_test/rootfs/etc/nginx/includes/upstream.conf delete mode 100644 zzz_test/rootfs/etc/nginx/nginx.conf delete mode 100644 zzz_test/rootfs/etc/nginx/servers/ingress.conf delete mode 100644 zzz_test/rootfs/etc/nginx/servers/ssl.conf delete mode 100644 zzz_test/rootfs/run.txt delete mode 100644 zzz_test/stats.png delete mode 100644 zzz_test/updater.json diff --git a/zzz_test/CHANGELOG.md b/zzz_test/CHANGELOG.md deleted file mode 100644 index ac668ca28..000000000 --- a/zzz_test/CHANGELOG.md +++ /dev/null @@ -1,172 +0,0 @@ -## v2.0-beta (10-10-2024) -- Switched to v2.0 beta, should hopefully solve everyone's issues! - -## v1.12.0-4 (22-09-2024) -- Minor bugs fixed -## v1.12.0-3 (22-09-2024) -- Another version with 1.12 to try to solve issues with config not recognized - -## v1.12.0-2 (25-08-2024) -- BACKUP BEFORE UPDATING !!! -- WARNING : version 1.12 erroneously updated to 2.0. Your database could become corrupted if you update from 1.12. You need to restore your homeassistant config directory before updating to this version Alas there is no easy solution to move back from Mealie 2.0 to 1.2. - -- If you had a backup from mealie : - - make a clean install (rename folder /homeassistant/addons_config/mealie_data to mealie_data.bak) - - restart the latest version of the addon (which will fully reset) and restore your backup -- If you have a backup from homeassistant of the /config folder : - - you should rename the folder /homeassistant/addons_config/mealie_data to mealie_data.bak - - extract your backup - - Copy the /homeassistant/addons_config/mealie_data folder from your backup to the same path in homeassistant -- Wait for the addon to move back to 2.0 to use your database that was upgraded... - -If you have neither, alas Mealie has no way to way back from the upgrade that occurred... For info, I've improved the system to make sure that the data is backuped in the future (this function did not exist when I created the addon) but this doesn't help for this specific issue. - -## v1.12.0 (24-08-2024) -- Update to latest version from hay-kot/mealie (changelog : https://github.com/hay-kot/mealie/releases) - -## v1.11.0 (03-08-2024) -- Update to latest version from hay-kot/mealie (changelog : https://github.com/hay-kot/mealie/releases) - -## v1.10.2 (06-07-2024) -- Update to latest version from hay-kot/mealie (changelog : https://github.com/hay-kot/mealie/releases) - -## v1.9.0 (22-06-2024) -- Update to latest version from hay-kot/mealie (changelog : https://github.com/hay-kot/mealie/releases) - -## v1.8.0 (08-06-2024) -- Update to latest version from hay-kot/mealie (changelog : https://github.com/hay-kot/mealie/releases) - -## v1.7.0 (25-05-2024) -- Update to latest version from hay-kot/mealie (changelog : https://github.com/hay-kot/mealie/releases) - -## v1.6.0 (11-05-2024) -- Update to latest version from hay-kot/mealie (changelog : https://github.com/hay-kot/mealie/releases) -## v1.5.1-2 (01-05-2024) -- Minor bugs fixed - -## v1.5.1 (20-04-2024) -- Update to latest version from hay-kot/mealie (changelog : https://github.com/hay-kot/mealie/releases) - -## v1.4.0 (06-04-2024) -- Update to latest version from hay-kot/mealie (changelog : https://github.com/hay-kot/mealie/releases) - -## v1.3.2 (16-03-2024) -- Update to latest version from hay-kot/mealie - -## v1.3.1 (09-03-2024) - -- Update to latest version from hay-kot/mealie - -## v1.2.0 (17-02-2024) - -- Update to latest version from hay-kot/mealie - -## v1.1.1 (03-02-2024) - -- Update to latest version from hay-kot/mealie -## v1.0.0-11 (30-01-2024) - -- Fix : incorrect redirect https://github.com/alexbelgium/hassio-addons/issues/1210 - -## v1.0.0-10 (26-01-2024) - -- Fix : .secret permissions denied by allowing again 0 as default user - -## v1.0.0-8 (24-01-2024) - -- Minor bugs fixed - -## v1.0.0-7 (24-01-2024) - -- Feat : exposed DATA_DIR in options to set a custom path - -## v1.0.0-5 (23-01-2024) - -- Fix : avoid spamming of "GET /api/app/about" - -## v1.0.0-4 (23-01-2024) - -- Breaking change : port 9001 (mapped to 9090 by default) both for http and https - -## v1.0.0-3 (22-01-2024) - -- Minor bugs fixed - -## v1.0.0 (22-01-2024) - -- Switch of container to official version 1.0.0 -- Adaptation of ports : please check addon options page -- Root user not anymore supported by upstream image, setting it to root (0:0) will revert to 1000:1000 -- Default user of 1000:1000 - -## v1.0.0-RC1.1 (14-10-2023) - -- Update to latest version from hay-kot/mealie -## v1.0.0-beta-5-4 (20-06-2023) - -- Minor bugs fixed -## v1.0.0-beta-5-3 (07-06-2023) - -- Minor bugs fixed -- Fix : avoid loop when upgrading from <1.0 versions https://github.com/alexbelgium/hassio-addons/issues/856 - -## v1.0.0-beta-5-2 (04-06-2023) - -- Minor bugs fixed - -## v1.0.0-beta-4 (07-05-2023) - -- Minor bugs fixed - -## v1.0.0-beta-3 (11-04-2023) - -- Minor bugs fixed - -## v1.0.0-beta-2 (11-04-2023) - -- Fix : ssl (https://github.com/alexbelgium/hassio-addons/issues/782) -- Implemented healthcheck - -## v1.0.0-beta-1 (07-01-2023) - -- Update to latest version from hay-kot/mealie - -## 1.0.1 (03-01-2023) - -- Migrates data to cp -r /data/\* /config/ to enable usage of new addons -- WARNING : update to supervisor 2022.11 before installing -- Optional passing of env variables by adding them in a config.yml file (see readme) -- Breaking change : amd64 updated to mealie 1.0 -- You'll lose your database : first do a backup from within mealie, then restore after upgrading - -## 1.0.0 (18-06-2022) - -- Update to latest version from hay-kot/mealie - -## 1.0.0.1 (26-05-2022) - -- Update to latest version from hay-kot/mealie -- Add codenotary sign - -## 0.5.6 (04-02-2022) - -- Update to latest version from hay-kot/mealie - -## 0.5.5 (04-02-2022) - -- Update to latest version from hay-kot/mealie -- New standardized logic for Dockerfile build and packages installation - -## 0.5.4 (03-12-2021) - -- Update to latest version from hay-kot/mealie - -## 0.5.3 (31-10-2021) - -- Update to latest version from hay-kot/mealie -- Added ssl option - -## 0.5.2 (26-07-2021) - -- Update to latest version from hay-kot/mealie -- :arrow_up: Initial release diff --git a/zzz_test/Dockerfile b/zzz_test/Dockerfile deleted file mode 100644 index e392fdcbe..000000000 --- a/zzz_test/Dockerfile +++ /dev/null @@ -1,142 +0,0 @@ -# Stage 1: Build Frontend with SUB_PATH -FROM node:16 AS builder - -# Set the SUB_PATH environment variable -ARG SUB_PATH="/mealie/" -ENV SUB_PATH=$SUB_PATH - -WORKDIR /app - -# Clone the Mealie repository to get the frontend source code -RUN git clone https://github.com/mealie-recipes/mealie.git . && \ - cd /app/frontend && \ - yarn install --prefer-offline --frozen-lockfile --non-interactive --production=false --network-timeout 1000000 && \ - yarn generate - -# Stage 2: Build the Final Image -FROM hkotel/mealie:nightly - -# Copy the rebuilt frontend files into the final image -COPY --from=builder /app/frontend/dist /spa/static - -# Proceed with your existing modifications and installations -#============================# -# ALEXBELGIUM'S DOCKERFILE # -#============================# -# _.------. -# _.-` ('>.-`"""-. -# '.--'` _'` _ .--.) -# -' '-.-';` ` -# ' - _.' ``'--. -# '---` .-'""` -# /` -#=== Home Assistant Addon ===# - -################# -# 1 Build Image # -################# - -# The base image is already specified above -# ARG BUILD_FROM -# FROM ${BUILD_FROM} - -################## -# 2 Modify Image # -################## - -# Set S6 wait time -ENV S6_CMD_WAIT_FOR_SERVICES=1 \ - S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \ - S6_SERVICES_GRACETIME=0 - -# Correct data path -# hadolint ignore=DL4006 -RUN grep -rl "/app/data" /app | xargs sed -i 's|/app/data|/config|g' && \ - sed -i "s|change_user$|# change_user|g" /app/run.sh - -################## -# 3 Install apps # -################## - -# Add rootfs -COPY rootfs/ / - -# Uses /bin for compatibility purposes -# hadolint ignore=DL4005 -RUN if [ ! -f /bin/sh ] && [ -f /usr/bin/sh ]; then ln -s /usr/bin/sh /bin/sh; fi && \ - if [ ! -f /bin/bash ] && [ -f /usr/bin/bash ]; then ln -s /usr/bin/bash /bin/bash; fi - -# Modules -ARG MODULES="00-banner.sh 01-custom_script.sh" - -# Automatic modules download -ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_automodules.sh" "/ha_automodules.sh" -RUN chmod 744 /ha_automodules.sh && /ha_automodules.sh "$MODULES" && rm /ha_automodules.sh - -# Manual apps -ENV PACKAGES="nginx" - -# Automatic apps & bashio -ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_autoapps.sh" "/ha_autoapps.sh" -RUN chmod 744 /ha_autoapps.sh && /ha_autoapps.sh "$PACKAGES" && rm /ha_autoapps.sh - -################ -# 4 Entrypoint # -################ - -# Add entrypoint -ENV S6_STAGE2_HOOK=/ha_entrypoint.sh -ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint.sh" - -# Entrypoint modifications -ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint_modif.sh" "/ha_entrypoint_modif.sh" -RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif.sh && rm /ha_entrypoint_modif.sh - -RUN \ - # Add custom instructions to run.sh on armv7 - sed -i '1d' /app/run.sh \ - && cat /app/run.sh >> /run.txt \ - && cat /run.txt > /app/run.sh \ - && chmod +x /app/run.sh - -############ -# 5 Labels # -############ - -ARG BUILD_ARCH -ARG BUILD_DATE -ARG BUILD_DESCRIPTION -ARG BUILD_NAME -ARG BUILD_REF -ARG BUILD_REPOSITORY -ARG BUILD_VERSION -LABEL \ - io.hass.name="${BUILD_NAME}" \ - io.hass.description="${BUILD_DESCRIPTION}" \ - io.hass.arch="${BUILD_ARCH}" \ - io.hass.type="addon" \ - io.hass.version=${BUILD_VERSION} \ - maintainer="alexbelgium (https://github.com/alexbelgium)" \ - org.opencontainers.image.title="${BUILD_NAME}" \ - org.opencontainers.image.description="${BUILD_DESCRIPTION}" \ - org.opencontainers.image.vendor="Home Assistant Add-ons" \ - org.opencontainers.image.authors="alexbelgium (https://github.com/alexbelgium)" \ - org.opencontainers.image.licenses="MIT" \ - org.opencontainers.image.url="https://github.com/alexbelgium" \ - org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \ - org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \ - org.opencontainers.image.created=${BUILD_DATE} \ - org.opencontainers.image.revision=${BUILD_REF} \ - org.opencontainers.image.version=${BUILD_VERSION} - -################# -# 6 Healthcheck # -################# - -# Use upstream - -# Expose necessary ports -EXPOSE 9000 - -# Set the entrypoint -ENTRYPOINT ["/app/run.sh"] diff --git a/zzz_test/README.md b/zzz_test/README.md deleted file mode 100644 index 0309f3205..000000000 --- a/zzz_test/README.md +++ /dev/null @@ -1,124 +0,0 @@ -# Hass.io Add-ons: Mealie - -[![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%2Fmealie%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%2Fmealie%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%2Fmealie%2Fconfig.json) - -[![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) -[![Builder](https://img.shields.io/github/actions/workflow/status/alexbelgium/hassio-addons/onpush_builder.yaml?label=Builder)](https://github.com/alexbelgium/hassio-addons/actions/workflows/onpush_builder.yaml) - -[donation-badge]: https://img.shields.io/badge/Buy%20me%20a%20coffee%20(no%20paypal)-%23d32f2f?logo=buy-me-a-coffee&style=flat&logoColor=white -[paypal-badge]: https://img.shields.io/badge/Buy%20me%20a%20coffee%20with%20Paypal-0070BA?logo=paypal&style=flat&logoColor=white - -Warning : armv7 only supported up to version 0.4.3! It won't be updated with later versions - -_Thanks to everyone having starred my repo! To star it click on the image below, then it will be on top right. Thanks!_ - -[![Stargazers repo roster for @alexbelgium/hassio-addons](https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.github/stars2.svg)](https://github.com/alexbelgium/hassio-addons/stargazers) - -![downloads evolution](https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/mealie/stats.png) - -## About - -Mealie is a self hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family. -This addon for mealie 1.0 is based on the combined [docker image](https://hub.docker.com/r/hendrix04/mealie-combined) from hendrix04. -This addon is based on the [docker image](https://hub.docker.com/r/hkotel/mealie) from hay-kot. - -## Configuration - -- Start the addon. Wait a while and check the log for any errors. -- Open yourdomain.com:9925 (where ":9925" is the port configured in the addon). -- Default - - Username: changeme@email.com - - Password: MyPassword - -Options can be configured through two ways : - -- Addon options - -```yaml - "BASE_URL": Optional, external base url - "PGID": user ID - "PUID": "group ID - "certfile": fullchain.pem #ssl certificate, must be located in /ssl - "keyfile": privkey.pem #sslkeyfile, must be located in /ssl - "ssl": ssl: true/false - "ALLOW_SIGNUP": Allow signup of users -``` - -- Config.yaml - Additional options can be configured using the config.yaml file found in /homeassistant/addons_config/xxx-mealie/config.yaml - -The complete list of options can be seen here : https://nightly.mealie.io/documentation/getting-started/installation/backend-config/ - -## Integration with HA - -### Detailed infos (Thanks @michelangelonz) - -Create a restful sensor - -```yaml -sensor: - - platform: rest - resource: "http://###.###.#.#:9090/api/groups/mealplans/today" - method: GET - name: Mealie todays meal - headers: - Authorization: Bearer - value_template: "{{ value_json.value }}" - json_attributes_path: $..recipe - json_attributes: - - name - - id - - totalTime - - prepTime - - performTime - - description - - slug -``` - -Create template sensors from attributes - -```yaml -- name: TodaysDinner - unique_id: sensor.TodaysDinner - state: "{{ state_attr('sensor.mealie_todays_meal', 'name') }}" -- name: TodaysDinnerDescription - unique_id: sensor.DinnerDescription - state: "{{ state_attr('sensor.mealie_todays_meal', 'description') }}" -- name: TodaysDinnerSlug - unique_id: sensor.DinnerSlug - state: "{{ state_attr('sensor.mealie_todays_meal', 'slug') }}" -- name: TodaysDinnerID - unique_id: sensor.DinnerID - state: "{{ state_attr('sensor.mealie_todays_meal', 'id') }}" -``` - -Add a generic camera for image -http://###.###.#.#:9090/api/media/recipes/{{ state_attr('sensor.mealie_todays_meal', 'id') }}/images/min-original.webp - -### Global infos - -Read here : https://hay-kot.github.io/mealie/documentation/community-guide/home-assistant/ - -## Installation - -The installation of this add-on is pretty straightforward and not different in -comparison to installing any other Hass.io add-on. - -1. [Add my Hass.io add-ons repository][repository] to your Hass.io instance. -1. Install this add-on. -1. Click the `Save` button to store your configuration. -1. Start the add-on. -1. Check the logs of the add-on to see if everything went well. -1. Carefully configure the add-on to your preferences, see the official documentation for for that. - -## Support - -If you have in issue with your installation, please be sure to checkout github. - -[repository]: https://github.com/alexbelgium/hassio-addons diff --git a/zzz_test/apparmor.txt b/zzz_test/apparmor.txt deleted file mode 100644 index 4b173ddad..000000000 --- a/zzz_test/apparmor.txt +++ /dev/null @@ -1,59 +0,0 @@ -#include - -profile mealie_addon flags=(attach_disconnected,mediate_deleted) { - #include - - capability, - file, - signal, - mount, - umount, - remount, - network udp, - network tcp, - network dgram, - network stream, - network inet, - network inet6, - network netlink raw, - network unix dgram, - capability setgid, - capability setuid, - - -# S6-Overlay - /init ix, - /run/{s6,s6-rc*,service}/** ix, - /package/** ix, - /command/** ix, - /run/{,**} rwk, - /dev/tty rw, - /bin/** ix, - /usr/bin/** ix, - /usr/lib/bashio/** ix, - /etc/s6/** rix, - /run/s6/** rix, - /etc/services.d/** rwix, - /etc/cont-init.d/** rwix, - /etc/cont-finish.d/** rwix, - /init rix, - /var/run/** mrwkl, - /var/run/ mrwkl, - /dev/i2c-1 mrwkl, - /dev/fuse mrwkl, - /dev/sda1 mrwkl, - /dev/sdb1 mrwkl, - /dev/nvme0 mrwkl, - /dev/nvme1 mrwkl, - /dev/mmcblk0p1 mrwkl, - - # Data access - /data/** rw, - - # suppress ptrace denials when using 'docker ps' or using 'ps' inside a container - ptrace (trace,read) peer=docker-default, - - # docker daemon confinement requires explict allow rule for signal - signal (receive) set=(kill,term) peer=/usr/bin/docker, - -} diff --git a/zzz_test/build.json b/zzz_test/build.json deleted file mode 100644 index 3d7c18cce..000000000 --- a/zzz_test/build.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "build_from": { - "aarch64": "hkotel/mealie:nightly", - "amd64": "hkotel/mealie:nightly" - }, - "codenotary": { - "signer": "alexandrep.github@gmail.com" - } -} diff --git a/zzz_test/config.json b/zzz_test/config.json deleted file mode 100644 index 6cdd60030..000000000 --- a/zzz_test/config.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "arch": [ - "aarch64", - "amd64" - ], - "codenotary": "alexandrep.github@gmail.com", - "description": "Mealie is a self hosted recipe manager and meal planner built in Vue", - "devices": [ - "/dev/dri", - "/dev/dri/card0", - "/dev/dri/card1", - "/dev/dri/renderD128", - "/dev/vchiq", - "/dev/video10", - "/dev/video11", - "/dev/video12", - "/dev/video13", - "/dev/video14", - "/dev/video15", - "/dev/video16", - "/dev/ttyUSB0", - "/dev/sda", - "/dev/sdb", - "/dev/sdc", - "/dev/sdd", - "/dev/sde", - "/dev/sdf", - "/dev/sdg", - "/dev/nvme", - "/dev/nvme0n1p1", - "/dev/nvme0n1p2", - "/dev/nvme0n1p3", - "/dev/nvme1n1p1", - "/dev/nvme1n1p2", - "/dev/nvme1n1p3", - "/dev/nvme2n1p1", - "/dev/nvme2n1p2", - "/dev/nvme3n1p3", - "/dev/mmcblk", - "/dev/fuse", - "/dev/sda1", - "/dev/sdb1", - "/dev/sdc1", - "/dev/sdd1", - "/dev/sde1", - "/dev/sdf1", - "/dev/sdg1", - "/dev/sda2", - "/dev/sdb2", - "/dev/sdc2", - "/dev/sdd2", - "/dev/sde2", - "/dev/sdf2", - "/dev/sdg2", - "/dev/sda3", - "/dev/sdb3", - "/dev/sda4", - "/dev/sdb4", - "/dev/sda5", - "/dev/sda6", - "/dev/sda7", - "/dev/sda8", - "/dev/nvme0", - "/dev/nvme1", - "/dev/nvme2" - ], - "environment": { - "BASE_SUBPATH": "/mealie/", - "DATA_DIR": "/config", - "DB_ENGINE": "sqlite", - "MAX_WORKERS": "1", - "WEB_CONCURRENCY": "2", - "WEB_GUNICORN": "true", - "WORKERS_PER_CORE": "0.5" - }, - "image": "ghcr.io/alexbelgium/test-{arch}", - "ingress": true, - "map": [ - "addon_config:rw", - "homeassistant_config:rw", - "share:rw", - "ssl:rw" - ], - "name": "Mealie test", - "options": { - "ALLOW_SIGNUP": true, - "DATA_DIR": "/config", - "PGID": 1000, - "PUID": 1000, - "certfile": "fullchain.pem", - "keyfile": "privkey.pem", - "ssl": false - }, - "panel_admin": false, - "panel_icon": "mdi:silverware-fork-knife", - "ports": { - "9001/tcp": 9090 - }, - "ports_description": { - "9001/tcp": "Web interface" - }, - "schema": { - "ALLOW_SIGNUP": "bool", - "BASE_SUBPATH": "str?", - "BASE_URL": "str?", - "DATA_DIR": "str?", - "PGID": "int", - "PUID": "int", - "certfile": "str", - "keyfile": "str", - "ssl": "bool" - }, - "slug": "test", - "udev": true, - "url": "https://github.com/alexbelgium/hassio-addons", - "version": "v2.0-beta_ingress_test9" -} diff --git a/zzz_test/icon.png b/zzz_test/icon.png deleted file mode 100644 index 136b3951561b9d987b86bd8e121f02d131140a38..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3628 zcmaJ@c{o)49zSC;R5MA6k!@tg=*>Drq%lOOEQu@C%_veKElQSV#>_~iEKyRS;;mjw z=#3T$*-Mh;4P~3nQW%86ymRhv=-%hK&vTzU&zbZ4e!u7YS$^N&`Qu!1cXh<9Sib^- zAdIt00K-BfM|d0#wED)&eY{C_6*T=r0UXUBIp^VFA}nKr99FixJ!e< zrL8S816mGUIvG$Oiq#Q-M@yZ*1|?0ou|&|uiv>b>9x%Yvk$R)+{TdOQ0EP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Cgf1Gw|zC!y&E#Ex{rFu%|BBuTNQzNIGgWVZB%s( zWwYc)AT|^yAe_l=;z@J)Uf5cZs*NZ@M?W`mkb0b4EO()8IuNP1R2e|sTos0HXDsF+ zB6tIO#FW8!)aYzv8x%+`mVMMVt%2OLROwAcSA~g}FcxnjF7pPolafCs3~oa8%zg@b zG-Yy}+>0(5N&5y#kTcNS;k2)i7TE*MWu|pPj$~Ohmz~xI1(AEjyV!G_v`XWBXA6Jh~Qf^D>sLA-1{wQ-anjGKrUdXa;=JgoTF6~QkYZq0Wya{-> zM_*?e?5(~wSO;XJkOfQ0sJdAdbP3ZMv*mN5cJ-Y>649ip20G5iA_-hkS<+`E5^*yh zLQX6{kWGrM%0MXc?16p|p*jxELu4!!?-;5F7)?G3$y@q?&b4ds3?h9XWOe_67~AQU z@;^RuSk3T>pqBQVdF4;QN0@4e)zJ`duMi*O)0cd}0ui(cIvP3z4T6!Yj*+qMUSnN@ r-P+p5+S(c(1Hb(TATY@LtZ(>#0qCp)%(`3(006SJa indent) {delete vname[i]}} - if (length($3) > 0) { - vn=""; for (i=0; i/tmpfile - -while IFS= read -r line; do - # Clean output - line="${line//[\"\']/}" - # Check if secret - if [[ "${line}" == *'!secret '* ]]; then - echo "secret detected" - secret=${line#*secret } - # Check if single match - secretnum=$(sed -n "/$secret:/=" /config/secrets.yaml) - [[ $(echo $secretnum) == *' '* ]] && bashio::exit.nok "There are multiple matches for your password name. Please check your secrets.yaml file" - # Get text - secret=$(sed -n "/$secret:/p" /config/secrets.yaml) - secret=${secret#*: } - line="${line%%=*}='$secret'" - fi - # Data validation - if [[ "$line" =~ ^.+[=].+$ ]]; then - export "$line" - # Show in log - if ! bashio::config.false "verbose"; then bashio::log.blue "$line"; fi - else - bashio::exit.nok "$line does not follow the correct structure. Please check your yaml file." - fi -done <"/tmpfile" - -else -bashio::log.info "No config.yaml found in $CONFIGSOURCE, using default parameters" -fi - -############### -# PERMISSIONS # -############### - -chmod -R 777 /data -mkdir -p "$DATA_DIR" -cd "$DATA_DIR" || true -chown -R "$PUID:$PGID" . -echo "Permissions adapted" - -bashio::log.info "Starting nginx" -nginx & true - -bashio::log.info "Starting app" -fi diff --git a/zzz_test/stats.png b/zzz_test/stats.png deleted file mode 100644 index 19157333fcfd2e85143084fb69cd4aa8f391cae2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1628 zcmV-i2BZ0jP)005Q<0{{R3A47^=0003aP)t-s|Ns90 z005w%p#J~>0KfnMfd9Y%{{Zgpz(4@V$N)iU;s3xO0DwTifd4RHfQtYCK!5=Mfd7C0 z)TJsa|Nj6$;Lrd702&$^Gcz+yO-*KIW`BQwnVFfhv$Md!z|73d<>lr7|NrnZGLY_& zt=Q)9Rq){d|L)y_|F*%e?(YBB009300Av6F|9>KjA})(p009300E-zJZ~y>+007O0 z&g%gG|Nj900M60>6qEmdQ1F0&|3v`$fO6@Udhq6qy|-()h70xe+@OFU|D^!#g6@<6 z)7_xmkWfHXYcGHl0Du$}fIt+0K!AW?z<^-?fPeu1fI$DCK>wg%|DbUHz`+0ifdBu% z&9|QL|L~x;&B6b{&A_mH|3IMsAilo70G@MhT!{Yw000SaNLh0L01m_e01m_fl`9S# z000EvNkl>$<8S5J2PQ_WM85{!%kA8DKyiV67kfWHo861}83_*9!mu00000 z00000;1Zm;2}6SP`EbrHf47_KCJfG^`?dJ~Y{KZc*T?trk3;(m99njq0{{R300000 zz@zNL5ikvFcQk#IbK$(dFbNDoOo)3OoIB`|BIoOvqZd<|^>yLwyvuMD__! z`Ed1Bl>^pNM(k@E~Wdcf{)br+G(u4@kZj z%B&&XI!WPgReI#kWv*EVB{_r{QEU{`$ph$XAI9yMe>z%UZy(k>6 zq%gSy=#lG?3f~K|HJW#G)CzwSwRW5WSr`s&QIu8oxcG!-0gdz zY!bzGe^xl8ctrS{@)a&*dL?(2YjMh}_fR_4OL*4x2T@w&L7I0JCVa2ZBXoc)IjxGJIyNy58ZO-W0RR9f0&^bm4n}LaqgU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