#! /bin/bash set -uxe SLDL_CONF_DIR="/root/.config/sldl/" SLDL_CONF="$SLDL_CONF_DIR/sldl.conf" directories() { mkdir -p $SLDL_CONF_DIR mkdir -p /data/_metadata } configure() { cd /app envsubst < /app/etc/sldl.tpl.conf > $SLDL_CONF echo "--------------------------------------------------------------" echo "configured sldl" cat $SLDL_CONF echo "--------------------------------------------------------------" } start() { # sleep 100000 } main() { directories configure start } main