fix nulls

This commit is contained in:
soraefir
2026-05-08 21:01:46 +02:00
parent d898116ff4
commit 5de459c347
3 changed files with 6 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ in {
"--tmpfs /tmp:rw,mode=1777"
];
overrides = {
ports = if containerCfg.pubPort && containerCfg.port then [ "${toString containerCfg.pubPort}:${toString containerCfg.port}" ] else [];
ports = if containerCfg.pubPort!=null && containerCfg.port!=null then [ "${toString containerCfg.pubPort}:${toString containerCfg.port}" ] else [];
volumes = [
"${serverCfg.dataPath}/nextcloud/www:/var/www/html"
"${serverCfg.dataPath}/nextcloud/data:/var/www/html/data"