fix storage creation in homeassistant on first run
This commit is contained in:
parent
ca2f7039cc
commit
da2e1ff0e1
1 changed files with 5 additions and 2 deletions
|
@ -174,10 +174,13 @@ in
|
|||
}
|
||||
}
|
||||
'';
|
||||
file = "${config.services.home-assistant.configDir}/.storage/onboarding";
|
||||
storage = "${config.services.home-assistant.configDir}/.storage";
|
||||
file = "${storage}/onboarding";
|
||||
in
|
||||
''
|
||||
-f ${file} || cp ${onboarding} ${file}
|
||||
if ! -f ${file}; then
|
||||
mkdir -p ${storage} && cp ${onboarding} ${file}
|
||||
fi
|
||||
'';
|
||||
|
||||
sops.secrets."home-assistant" = {
|
||||
|
|
Loading…
Reference in a new issue