From 56656fd567cb291154627c3a7b189d6c5decd81e Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Thu, 23 May 2024 11:09:19 +0200 Subject: [PATCH] chore(cli): Exposing OR backups systemwide Signed-off-by: rjshrjndrn --- scripts/helmcharts/openreplay-cli | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/helmcharts/openreplay-cli b/scripts/helmcharts/openreplay-cli index 5bd39e82b..5674a7027 100755 --- a/scripts/helmcharts/openreplay-cli +++ b/scripts/helmcharts/openreplay-cli @@ -106,7 +106,6 @@ log info "Using KUBECONFIG $KUBECONFIG" tmp_dir=$(mktemp -d) function install_packages() { - [[ -e "$OR_DIR/eget" ]] || { cd "$tmp_dir" || log err "Not able to cd to tmp dir $tmp_dir" curl --version &>/dev/null || log err "curl not found. Please install" @@ -132,6 +131,10 @@ function install_packages() { sudo /var/lib/openreplay/eget -q --upgrade-only --to "$OR_DIR" https://busybox.net/downloads/binaries/1.35.0-x86_64-linux-musl/busybox } date | sudo tee $OR_DIR/packages.lock &>/dev/null + # Adding path to global + if ! grep -q "/var/lib/openreplay" /etc/profile; then + echo 'export PATH=/var/lib/openreplay:$PATH' | sudo tee -a /etc/profile + fi } function help() {