diff --git a/deploy.sh b/deploy.sh index 98ff266..508fdec 100644 --- a/deploy.sh +++ b/deploy.sh @@ -390,7 +390,7 @@ services_generation() { if [[ "${service}" != "virtualization" ]]; then if [[ "${service}" == "nextcloud" ]]; then cp templates/nix-config/podman/${service}.nix final-nix-config/etc/nixos/podman/${service}.nix - PODMAN_NETWORKS+=". \${pkgs.podman}/bin/podman network create --driver=bridge --subnet=172.16.${j}0.0/24 --ip-range=172.16.${j}0.0/24 --gateway=172.16.${j}0.254 nextcloud-aio"$'\n' + PODMAN_NETWORKS+=" \${pkgs.podman}/bin/podman network create --driver=bridge --subnet=172.16.${j}0.0/24 --ip-range=172.16.${j}0.0/24 --gateway=172.16.${j}0.254 nextcloud-aio"$'\n' TRAEFIK_NETWORKS+=" nextcloud-aio:"$'\n' TRAEFIK_NETWORKS+=" ipv4_address: 172.16.${j}0.253"$'\n' TRAEFIK_REF_NETWORKS+=" nextcloud-aio:"$'\n' diff --git a/templates/nix-config/misc/activation.nix b/templates/nix-config/misc/activation.nix index 90a7da3..49ed951 100644 --- a/templates/nix-config/misc/activation.nix +++ b/templates/nix-config/misc/activation.nix @@ -10,6 +10,8 @@ RemainAfterExit = true; }; script = '' + #!/usr/bin/env bash + if [[ -e /home/numbus-admin/.numbus-server/chowned.true ]]; then exit 0 fi @@ -34,6 +36,8 @@ RemainAfterExit = true; }; script = '' + #!/usr/bin/env bash + if [[ -e /home/numbus-admin/.numbus-server/networked.true ]]; then exit 0 fi