From 899c6e5b7957f885ae124d210aa99c5476b2d2d3 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 18 Oct 2021 16:01:58 +0200 Subject: [PATCH] test --- papermerge/config.json | 15 ++-------- .../rootfs/etc/cont-init.d/00-aaa_bashio | 29 +++++++++++++++++++ 2 files changed, 32 insertions(+), 12 deletions(-) create mode 100644 papermerge/rootfs/etc/cont-init.d/00-aaa_bashio diff --git a/papermerge/config.json b/papermerge/config.json index 9d0e6675e..6adb987ad 100644 --- a/papermerge/config.json +++ b/papermerge/config.json @@ -1,27 +1,18 @@ { "name": "Papermerge", - "version": "2.0.1-3", + "version": "2.0.1-4", "upstream": "2.0.1", "slug": "papermerge", "description": "Open source document management system (DMS)", "url": "https://github.com/alexbelgium/hassio-addons", - "arch": [ - "aarch64", - "amd64", - "armv7", - "armhf" - ], + "arch": ["aarch64", "amd64", "armv7", "armhf"], "ports": { "8000/tcp": 8000 }, "ports_description": { "8000/tcp": "Web UI port (required)" }, - "map": [ - "share:rw", - "media:rw", - "ssl" - ], + "map": ["share:rw", "media:rw", "ssl"], "webui": "http://[HOST]:[PORT:8000]", "environment": { "DOCKER_MODS": "linuxserver/mods:papermerge-multilangocr" diff --git a/papermerge/rootfs/etc/cont-init.d/00-aaa_bashio b/papermerge/rootfs/etc/cont-init.d/00-aaa_bashio new file mode 100644 index 000000000..b44185d70 --- /dev/null +++ b/papermerge/rootfs/etc/cont-init.d/00-aaa_bashio @@ -0,0 +1,29 @@ +#!/bin/bash + +if [ ! -f "/usr/lib/bashio" ]; then + echo "Bashio does not exist, executing script" + + ################ + # Install apps # + ################ + apt-get clean + apt-get update \ + apt-get install -y --no-install-recommends \ + jq \ + curl \ + cifs-utils \ + keyutils \ + samba + + ################### + # Install bashio # + ################## + mkdir -p /tmp/bashio + curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" | + tar -xzf - --strip 1 -C /tmp/bashio \ + mv /tmp/bashio/lib /usr/lib/bashio \ + ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ + rm -rf /tmp/bashio + + echo "Bashio installed" +fi