From e7b58eec417c5f4d55e469632e3f62203b74c60e Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Sun, 8 Nov 2020 14:33:34 +0100 Subject: [PATCH] Use sane default for installer script --- contrib/config/get_luet_root.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/config/get_luet_root.sh b/contrib/config/get_luet_root.sh index 6990f765..8c29b0a0 100755 --- a/contrib/config/get_luet_root.sh +++ b/contrib/config/get_luet_root.sh @@ -4,14 +4,17 @@ export LUET_NOLOCK=true LUET_VERSION=0.8.6 LUET_ROOTFS=${LUET_ROOTFS:-/} -LUET_DATABASE_PATH=${LUET_DATABASE_PATH:-/} +LUET_DATABASE_PATH=${LUET_DATABASE_PATH:-/var/luet/db} LUET_DATABASE_ENGINE=${LUET_DATABASE_ENGINE:-boltdb} -LUET_CONFIG_PROTECT=${LUET_CONFIG_PROTECT:-0} +LUET_CONFIG_PROTECT=${LUET_CONFIG_PROTECT:-1} 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 +mkdir -p $LUET_DATABASE_PATH || true +mkdir -p /var/tmp/luet || 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 @@ -25,6 +28,7 @@ system: rootfs: ${LUET_ROOTFS} database_path: "${LUET_DATABASE_PATH}" database_engine: "${LUET_DATABASE_ENGINE}" + tmpdir_base: "/var/tmp/luet" EOF ./luet install repository/luet repository/mocaccino-repository-index