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