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