From 6131d16811047bdcac9e8a0274cb224161b23fec Mon Sep 17 00:00:00 2001 From: David Claeys Date: Sat, 7 Feb 2026 14:40:00 +0100 Subject: [PATCH] improvements start script --- start.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/start.sh b/start.sh index e8bb874..2afc46d 100644 --- a/start.sh +++ b/start.sh @@ -12,10 +12,12 @@ done groupmod -g $gid hyperion usermod -u $uid hyperion chown -R hyperion:hyperion /config -if [ ! -d "/config/db" ]; then - sudo -u hyperion /usr/bin/hyperiond/bin/hyperiond -i --userdata /config --importConfig initialconfig.json -fi + if test -f "initialconfig.json"; then + + if [ ! -d "/config/db" ]; then + sudo -u hyperion /usr/bin/hyperiond/bin/hyperiond -i --userdata /config --importConfig initialconfig.json + fi rm initialconfig.json fi