From 72808c6ab76c4a3e5ecfca4ff09e7a4350f30a50 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sun, 24 Mar 2024 16:04:07 +0300 Subject: [PATCH] Home : Fix new BASH_PATH for services. --- host/home/Backup.nix | 3 +++ host/home/Nextcloud.nix | 3 +++ host/home/bin/Backup | 2 +- host/home/bin/Nextcloud | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/host/home/Backup.nix b/host/home/Backup.nix index 01edd3c7..4548cb1d 100644 --- a/host/home/Backup.nix +++ b/host/home/Backup.nix @@ -14,6 +14,9 @@ gawk pv ]; + environment = { + BASH_PATH = ../../module/common/bash; + }; # wantedBy = [ "multi-user.target" ]; }; diff --git a/host/home/Nextcloud.nix b/host/home/Nextcloud.nix index 79123a24..95c8a6cf 100644 --- a/host/home/Nextcloud.nix +++ b/host/home/Nextcloud.nix @@ -10,6 +10,9 @@ bashInteractive docker ]; + environment = { + BASH_PATH = ../../module/common/bash; + }; # wantedBy = [ "multi-user.target" ]; }; diff --git a/host/home/bin/Backup b/host/home/bin/Backup index 2178f54e..5f16ef31 100755 --- a/host/home/bin/Backup +++ b/host/home/bin/Backup @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Source modules. -for file in /etc/bash/module/*.sh; do +for file in ${BASH_PATH}/module/*.sh; do source "${file}" done diff --git a/host/home/bin/Nextcloud b/host/home/bin/Nextcloud index 404d7768..605e0b8c 100755 --- a/host/home/bin/Nextcloud +++ b/host/home/bin/Nextcloud @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Source modules. -for file in /etc/bash/module/*.sh; do +for file in ${BASH_PATH}/module/*.sh; do source "${file}" done