Skip to content

Commit

Permalink
Merge da921f7 into 4125fc3
Browse files Browse the repository at this point in the history
  • Loading branch information
helto4real committed Dec 23, 2020
2 parents 4125fc3 + da921f7 commit 902a584
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion Docker/rootfs/etc/services.d/NetDaemonApp/run
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ if [ ! -d "/data" ]; then
fi

if [ -f "/data/options.json" ]; then
echo -e "\\033[31m AddOn found!!.\\033[0m" >&2
export NETDAEMON__APPSOURCE=$( jq -r .app_source /data/options.json )
is_addon=true
fi
Expand Down
3 changes: 3 additions & 0 deletions src/DaemonRunner/DaemonRunner/NetDaemonExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ static void ReadHassioConfig()
var hassAddOnSettings = JsonSerializer.Deserialize<HassioConfig>(File.ReadAllBytes(HassioConfigPath));

if (hassAddOnSettings?.LogLevel is not null)
{
Environment.SetEnvironmentVariable("LOGGING__MINIMUMLEVEL", hassAddOnSettings.LogLevel);
SerilogConfigurator.SetMinimumLogLevel(hassAddOnSettings.LogLevel);
}

if (hassAddOnSettings?.GenerateEntitiesOnStart is not null)
Environment.SetEnvironmentVariable("NETDAEMON__GENERATEENTITIES", hassAddOnSettings.GenerateEntitiesOnStart.ToString());
Expand Down

0 comments on commit 902a584

Please sign in to comment.