Skip to content
Snippets Groups Projects
Commit 1a75a232 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

MAINT: make paths relative to file location

parent 9dd7a2de
Branches
Tags
No related merge requests found
......@@ -58,11 +58,12 @@ backup:
EOF
)
UTILS_PATH=`dirname "$(realpath $0)"`
# Load settings from .config and defaults #####################################
. load_settings.sh
. $UTILS_PATH/load_settings.sh
# load useful functions #######################################################
. helpers.sh
. $UTILS_PATH/helpers.sh
function backup() {
NARG_NAME="$1"
......
......@@ -18,8 +18,11 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
[[ -n "../config.defaults" ]] && source "../config.defaults"
[[ -n "../.config" ]] && source "../.config"
UTILS_PATH=`dirname "$(realpath $0)"`
MAIN_PATH=`dirname "${UTILS_PATH}"`
[[ -n "${MAIN_PATH}/config.defaults" ]] && source "${MAIN_PATH}/config.defaults"
[[ -n "${MAIN_PATH}/.config" ]] && source "${MAIN_PATH}/.config"
[[ -n "$ENV_FILE" ]] && source "$ENV_FILE"
if [[ -z "$DATABASE_NAME" && -z "$MYSQL_CONNECTION" ]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment