Added variables initialization
This commit is contained in:
@@ -451,12 +451,12 @@ services_generation() {
|
||||
|
||||
# Gitea config
|
||||
elif [[ "${service}" == "gitea" ]]; then
|
||||
generate_network "${service}" 1
|
||||
generate_network "${service}" "1"
|
||||
generate_db_creds "GITEA"
|
||||
|
||||
# Home Assistant config
|
||||
elif [[ "${service}" == "home-assistant" ]]; then
|
||||
generate_network "${service}" 1
|
||||
generate_network "${service}" "1"
|
||||
if [[ -n "${TARGET_ZIGBEE_DEVICE}" ]]; then
|
||||
local REPLACEMENT="devices:\n - /dev/serial/by-id/${TARGET_ZIGBEE_DEVICE}:/dev/ttyUSB0"
|
||||
sed -i "s|# --- home-assistant devices --- #|$REPLACEMENT|" final-nix-config/etc/nixos/podman/home-assistant.nix
|
||||
@@ -471,7 +471,7 @@ services_generation() {
|
||||
|
||||
# Immich config
|
||||
elif [[ "${service}" == "immich" ]]; then
|
||||
generate_network "${service}" 1
|
||||
generate_network "${service}" "1"
|
||||
generate_db_creds "IMMICH"
|
||||
local IMMICH_DEVICES_BLOCK=""
|
||||
if [[ "$TARGET_GRAPHICS_RENDERER" == "true" ]]; then
|
||||
@@ -484,19 +484,19 @@ services_generation() {
|
||||
|
||||
# Nextcloud config
|
||||
elif [[ "${service}" == "nextcloud" ]]; then
|
||||
generate_network "${service}" 0 "nextcloud-aio"
|
||||
generate_network "${service}" "0" "nextcloud-aio"
|
||||
envsubst < templates/podman-config/traefik/nextcloud.yaml > final-nix-config/mnt/config/traefik/rules/nextcloud.yaml
|
||||
|
||||
# Passbolt config
|
||||
elif [[ "${service}" == "passbolt" ]]; then
|
||||
generate_network "${service}" 1
|
||||
generate_network "${service}" "1"
|
||||
generate_db_creds "PASSBOLT"
|
||||
envsubst < templates/podman-config/traefik/headers.yaml > final-nix-config/mnt/config/traefik/rules/headers.yaml
|
||||
envsubst < templates/podman-config/traefik/tls.yaml > final-nix-config/mnt/config/traefik/rules/tls.yaml
|
||||
|
||||
# Pi-Hole config
|
||||
elif [[ "${service}" == "pi-hole" ]]; then
|
||||
generate_network "${service}" 0
|
||||
generate_network "${service}" "0"
|
||||
export FTLCONF_WEBSERVER_PASSWORD="$(xkcdpass -d "-")"
|
||||
|
||||
# Virtualization config
|
||||
@@ -507,7 +507,7 @@ services_generation() {
|
||||
|
||||
# Other podman containers with no special configuration
|
||||
else
|
||||
generate_network "${service}" 0
|
||||
generate_network "${service}" "0"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user