Skip to content

Commit fbcf8fc

Browse files
authored
Fix hardcoded path for add-on (#1006)
* Fix hard coded path * small fix
1 parent 99fabb8 commit fbcf8fc

File tree

1 file changed

+2
-2
lines changed
  • Docker/rootfs/etc/services.d/netdaemon_addon

1 file changed

+2
-2
lines changed

Docker/rootfs/etc/services.d/netdaemon_addon/run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if ! bashio::fs.file_exists "/data/options.json"; then
4242
fi
4343

4444
if ! bashio::config.has_value "app_assembly"; then
45-
bashio::log.info "Starting NetDaemon V3 Runtime ..."
45+
bashio::log.info "Starting NetDaemon V4 Runtime ..."
4646
cd "${daemondir}" || bashio::exit.nok "${daemondir} does not exist"
4747
exec dotnet NetDaemon.Host.Default.dll
4848
else
@@ -58,7 +58,7 @@ else
5858
# make path relative to data folder (/config/netdaemon if addon)
5959
# if the path is a relative path
6060
if [[ "${NetDaemon__ApplicationAssembly}" != "/"* ]]; then
61-
export NetDaemon__ApplicationAssembly="/config/netdaemon3/${NetDaemon__ApplicationAssembly}"
61+
export NetDaemon__ApplicationAssembly="${NetDaemon__ApplicationConfigurationFolder}/${NetDaemon__ApplicationAssembly}"
6262
fi
6363

6464
# The provided application source is ether a project or pre-compiled .Net application

0 commit comments

Comments
 (0)