From f1604c3b6f4d5eeea8a59a5d4f697cf924301408 Mon Sep 17 00:00:00 2001 From: Daniele Rondina Date: Fri, 6 Nov 2020 07:46:00 +0100 Subject: [PATCH] contrib: Add get_luet_root.sh script --- contrib/config/get_luet_root.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 contrib/config/get_luet_root.sh diff --git a/contrib/config/get_luet_root.sh b/contrib/config/get_luet_root.sh new file mode 100755 index 00000000..6990f765 --- /dev/null +++ b/contrib/config/get_luet_root.sh @@ -0,0 +1,33 @@ +#!/bin/bash +set -ex +export LUET_NOLOCK=true + +LUET_VERSION=0.8.6 +LUET_ROOTFS=${LUET_ROOTFS:-/} +LUET_DATABASE_PATH=${LUET_DATABASE_PATH:-/} +LUET_DATABASE_ENGINE=${LUET_DATABASE_ENGINE:-boltdb} +LUET_CONFIG_PROTECT=${LUET_CONFIG_PROTECT:-0} + +wget -q https://github.com/mudler/luet/releases/download/0.8.6/luet-0.8.6-linux-amd64 -O luet +chmod +x luet + +mkdir -p /etc/luet/repos.conf.d || true +if [ "${LUET_CONFIG_PROTECT}" = "1" ] ; then + mkdir -p /etc/luet/config.protect.d || true + wget -q https://raw.githubusercontent.com/mudler/luet/master/contrib/config/config.protect.d/01_etc.yml.example -O /etc/luet/config.protect.d/01_etc.yml +fi +wget -q https://raw.githubusercontent.com/mocaccinoOS/repository-index/master/packages/mocaccino-repository-index/mocaccino-repository-index.yml -O /etc/luet/repos.conf.d/mocaccino-repository-index.yml + +cat > /etc/luet/luet.yaml <