From 8a5815bbb38e0422af8aa89599d9340e1491395d Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 27 May 2025 16:30:32 +0200 Subject: [PATCH] fixes --- ct/backrest.sh | 2 +- install/backrest-install.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ct/backrest.sh b/ct/backrest.sh index 6822dab..19539bf 100644 --- a/ct/backrest.sh +++ b/ct/backrest.sh @@ -37,7 +37,7 @@ function update_script() { temp_file=$(mktemp) rm -f /opt/backrest/bin/backrest curl -fsSL "https://github.com/garethgeorge/backrest/releases/download/v${RELEASE}/backrest_Linux_x86_64.tar.gz" -o "$temp_file" - tar zxf "$temp_file" --strip-components=1 -C /opt/backrest/bin + tar xzf $temp_file -C /opt/backrest/bin chmod +x /opt/backrest/bin/backrest echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP} to ${RELEASE}" diff --git a/install/backrest-install.sh b/install/backrest-install.sh index 6754266..f8cc5a0 100644 --- a/install/backrest-install.sh +++ b/install/backrest-install.sh @@ -18,12 +18,12 @@ RELEASE=$(curl -fsSL https://api.github.com/repos/garethgeorge/backrest/releases temp_file=$(mktemp) mkdir -p /opt/backrest/{bin,config,data} curl -fsSL "https://github.com/garethgeorge/backrest/releases/download/v${RELEASE}/backrest_Linux_x86_64.tar.gz" -o "$temp_file" -tar zxf "$temp_file" --strip-components=1 -C /opt/backrest/bin +tar xzf $temp_file -C /opt/backrest/bin +chmod +x /opt/backrest/bin/backrest echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed Backrest" msg_info "Creating Service" -chmod +x /opt/backrest/bin/backrest cat </etc/systemd/system/backrest.service [Unit] Description=Backrest