From a82292cba45d4bfa2680360cface0b68a63990d4 Mon Sep 17 00:00:00 2001 From: David Claeys Date: Fri, 6 Feb 2026 22:20:26 +0100 Subject: [PATCH] improvement config generation --- start.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 5748c11..e8bb874 100644 --- a/start.sh +++ b/start.sh @@ -12,8 +12,11 @@ done groupmod -g $gid hyperion usermod -u $uid hyperion chown -R hyperion:hyperion /config -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 +if test -f "initialconfig.json"; then rm initialconfig.json fi + sudo -u hyperion /usr/bin/hyperiond/bin/hyperiond -i --userdata /config \ No newline at end of file