Files
hassio-addons/papermerge/rootfs/etc/cont-init.d/00-folders.sh
2022-03-22 11:14:51 +01:00

15 lines
327 B
Bash

#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# Config location
CONFIGLOCATION="$(bashio::config 'CONFIG_LOCATION')"
# Text
bashio::log.info "Setting config location to $CONFIGLOCATION"
# Adapt files
sed -i "s|/data/config|$CONFIGLOCATION|g" /etc/cont-init.d/*
# Create directory
mkdir -p "$CONFIGLOCATION"/config