From 66e7fd88eafff1804586ce5f21be2c8a074e3cb1 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Thu, 21 Mar 2024 00:31:45 +0300 Subject: [PATCH] Home : Fix bin bash module loading. --- host/home/bin/Backup | 7 +------ host/home/bin/Nextcloud | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/host/home/bin/Backup b/host/home/bin/Backup index 9efb6f2c..2178f54e 100755 --- a/host/home/bin/Backup +++ b/host/home/bin/Backup @@ -1,12 +1,7 @@ #!/usr/bin/env bash -if [[ -z ${BASH_PATH} ]]; then - echo "BASH_PATH not defined." - exit 1 -fi - # Source modules. -for file in ${BASH_PATH}/module/*.sh; do +for file in /etc/bash/module/*.sh; do source "${file}" done diff --git a/host/home/bin/Nextcloud b/host/home/bin/Nextcloud index 795753f2..404d7768 100755 --- a/host/home/bin/Nextcloud +++ b/host/home/bin/Nextcloud @@ -1,12 +1,7 @@ #!/usr/bin/env bash -if [[ -z ${BASH_PATH} ]]; then - echo "BASH_PATH not defined." - exit 1 -fi - # Source modules. -for file in ${BASH_PATH}/module/*.sh; do +for file in /etc/bash/module/*.sh; do source "${file}" done