From 36c89daec8b29b01c1c3e78df0d97b20876f70a3 Mon Sep 17 00:00:00 2001 From: Paul Sinclair Date: Sun, 15 Sep 2019 09:14:52 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91Change=20format=20of=20sed=20comman?= =?UTF-8?q?d,=20add=20logging=20(#33)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home-panel/rootfs/etc/cont-init.d/secrets.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home-panel/rootfs/etc/cont-init.d/secrets.sh b/home-panel/rootfs/etc/cont-init.d/secrets.sh index c52d1b7..dd95988 100644 --- a/home-panel/rootfs/etc/cont-init.d/secrets.sh +++ b/home-panel/rootfs/etc/cont-init.d/secrets.sh @@ -14,7 +14,9 @@ fi key=$(cat /data/secret.txt) # Set secret to persistent secret file -sed -i "s/API_AUTH_SECRET/${key}/g" /opt/panel/config/default.json +bashio::log.info "Update secret in config" +sed -i "s#API_AUTH_SECRET#${key}#g" /opt/panel/config/default.json # Set database to /data +bashio::log.info "Update database path in config" sed -i "s#../db#/data#g" /opt/panel/config/default.json