fix(django-apps): Set nofail on mounts

This disables the dependency from local-fs.target to the mounts, which
caused a dependency cycle
Co-authored-by: Tom Hubrecht <tom.hubrecht@dgnum.eu>
Co-committed-by: Tom Hubrecht <tom.hubrecht@dgnum.eu>
This commit is contained in:
Tom Hubrecht 2025-04-11 21:07:32 +02:00 committed by thubrecht
parent f04a1aa6bc
commit df715ce343

View file

@ -638,7 +638,7 @@ in
{
where = "/run/django-apps/${name}/static";
what = "/var/lib/django-apps/${name}/${staticDirectory}";
options = "bind";
options = "bind,nofail";
after = [ "dj-${name}.service" ];
partOf = [ "dj-${name}.service" ];
@ -648,7 +648,7 @@ in
{
where = "/run/django-apps/${name}/media";
what = "/var/lib/django-apps/${name}/${mediaDirectory}";
options = "bind";
options = "bind,nofail";
after = [ "dj-${name}.service" ];
partOf = [ "dj-${name}.service" ];