mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-16 19:10:32 +02:00
14
papermerge/rootfs/etc/cont-init.d/00-folders.sh
Normal file
14
papermerge/rootfs/etc/cont-init.d/00-folders.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/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/*
|
||||
|
||||
# Avoid tamper issues
|
||||
chown -R root:root "$CONFIGLOCATION"/custom*
|
||||
Reference in New Issue
Block a user