Home : Fix new BASH_PATH for services.

This commit is contained in:
Dmitry Voronin 2024-03-24 16:04:07 +03:00
parent 1eea96f31b
commit 72808c6ab7
4 changed files with 8 additions and 2 deletions

View file

@ -14,6 +14,9 @@
gawk
pv
];
environment = {
BASH_PATH = ../../module/common/bash;
};
# wantedBy = [ "multi-user.target" ];
};

View file

@ -10,6 +10,9 @@
bashInteractive
docker
];
environment = {
BASH_PATH = ../../module/common/bash;
};
# wantedBy = [ "multi-user.target" ];
};

View file

@ -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

View file

@ -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