sync-containers: add noop to plain container scripts

This commit is contained in:
lassulus 2021-01-24 15:54:05 +01:00
parent 550b502628
commit f4206a6081

View File

@ -8,6 +8,7 @@ with import <stockholm/lib>;
};
start = cname: {
plain = ''
:
'';
ecryptfs = ''
if ! mount | grep -q '${cfg.dataLocation}/${cname}/ecryptfs on /var/lib/containers/${cname}/var/state type ecryptfs'; then
@ -28,6 +29,7 @@ with import <stockholm/lib>;
};
stop = cname: {
plain = ''
:
'';
ecryptfs = ''
${pkgs.ecrypt}/bin/ecrypt unmount ${cfg.dataLocation}/${cname}/ecryptfs /var/lib/containers/${cname}/var/state