Only create the docker network if it doesn't exist

This commit is contained in:
Andreas Zweili 2022-11-05 16:06:50 +01:00
parent 20cf8e2e85
commit 649e1a9f62
1 changed files with 1 additions and 1 deletions

View File

@ -55,8 +55,8 @@ in
];
};
};
${pkgs.docker}/bin/docker network create nextcloud
system.activationScripts.makeDokerNetwork = ''
${pkgs.docker}/bin/docker network ls | ${pkgs.gnugrep}/bin/grep nextcloud || {pkgs.docker}/bin/docker network create nextcloud
'';
}