Only create the docker network if it doesn't exist
This commit is contained in:
parent
20cf8e2e85
commit
649e1a9f62
|
@ -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
|
||||
'';
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue