Home : Fix new BASH_PATH for services.
This commit is contained in:
parent
1eea96f31b
commit
72808c6ab7
|
@ -14,6 +14,9 @@
|
||||||
gawk
|
gawk
|
||||||
pv
|
pv
|
||||||
];
|
];
|
||||||
|
environment = {
|
||||||
|
BASH_PATH = ../../module/common/bash;
|
||||||
|
};
|
||||||
# wantedBy = [ "multi-user.target" ];
|
# wantedBy = [ "multi-user.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
bashInteractive
|
bashInteractive
|
||||||
docker
|
docker
|
||||||
];
|
];
|
||||||
|
environment = {
|
||||||
|
BASH_PATH = ../../module/common/bash;
|
||||||
|
};
|
||||||
# wantedBy = [ "multi-user.target" ];
|
# wantedBy = [ "multi-user.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Source modules.
|
# Source modules.
|
||||||
for file in /etc/bash/module/*.sh; do
|
for file in ${BASH_PATH}/module/*.sh; do
|
||||||
source "${file}"
|
source "${file}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Source modules.
|
# Source modules.
|
||||||
for file in /etc/bash/module/*.sh; do
|
for file in ${BASH_PATH}/module/*.sh; do
|
||||||
source "${file}"
|
source "${file}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue