From fd47050d0e3d74b811b7994c694137bc1ac82763 Mon Sep 17 00:00:00 2001 From: Timmo Date: Sat, 14 Sep 2019 22:56:51 +0100 Subject: [PATCH] :ambulance: Remove bad grep check --- home-panel/rootfs/etc/cont-init.d/secrets.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/home-panel/rootfs/etc/cont-init.d/secrets.sh b/home-panel/rootfs/etc/cont-init.d/secrets.sh index 65017ed..25714a3 100644 --- a/home-panel/rootfs/etc/cont-init.d/secrets.sh +++ b/home-panel/rootfs/etc/cont-init.d/secrets.sh @@ -8,7 +8,5 @@ if [ "$(grep -i 'API_AUTH_SECRET' /opt/panel/config/default.json)" = 0 ]; then sed -i -e "s/API_AUTH_SECRET/$(openssl rand -base64 32)/g" /opt/panel/config/default.json fi -if [ "$(grep -i '../db' /opt/panel/config/default.json)" = 0 ]; then - # Force database to use /data - sed -i "s#../db#/data#g" /opt/panel/config/default.json -fi +# Force database to use /data +sed -i "s#../db#/data#g" /opt/panel/config/default.json