Skip to content

Commit

Permalink
Fix incorrect check if AppDaemon configuration already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Nov 15, 2023
1 parent 8a0951a commit 7de9e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appdaemon/rootfs/etc/s6-overlay/s6-rc.d/init-appdaemon/run
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if ! bashio::fs.directory_exists '/config/appdaemon.yaml' \
fi

# Creates initial AppDaemon configuration in case it is non-existing
if ! bashio::fs.directory_exists '/config/appdaemon.yaml'; then
if ! bashio::fs.file_exists '/config/appdaemon.yaml'; then
cp -R /root/appdaemon/* /config/ \
|| bashio::exit.nok 'Failed to create initial AppDaemon configuration'
fi
Expand Down

0 comments on commit 7de9e38

Please sign in to comment.