From b4739ee3c398045b228d4a637cdea853e3a70864 Mon Sep 17 00:00:00 2001 From: Frank Alvarado Date: Mon, 10 Jun 2024 23:14:00 -0500 Subject: [PATCH] cleanup --- ct/mylar3.sh | 2 +- install/mylar3-install.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ct/mylar3.sh b/ct/mylar3.sh index 6766243a..d462dce2 100644 --- a/ct/mylar3.sh +++ b/ct/mylar3.sh @@ -59,7 +59,7 @@ if [[ ! -d /opt/mylar3 ]]; then msg_error "No ${APP} Installation Found!"; exit; msg_info "Updating $APP" systemctl stop mylar3.service RELEASE=$(curl -s https://api.github.com/repos/mylar3/mylar3/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') -tar zxvf <(curl -fsSL https://github.com/mylar3/mylar3/archive/refs/tags/${RELEASE}.tar.gz) -C /opt/mylar3 +tar zxvf <(curl -fsSL https://github.com/mylar3/mylar3/archive/refs/tags/${RELEASE}.tar.gz) -C /opt/mylar3 &>/dev/null cd /opt/mylar3 python3 -m pip install -r requirements.txt &>/dev/null systemctl start mylar3.service diff --git a/install/mylar3-install.sh b/install/mylar3-install.sh index db65dc47..5f65d125 100644 --- a/install/mylar3-install.sh +++ b/install/mylar3-install.sh @@ -17,7 +17,6 @@ msg_info "Installing Dependencies" $STD apt-get install -y curl $STD apt-get install -y sudo $STD apt-get install -y mc -$STD apt-get install -y git $STD apt-get install -y pip msg_ok "Installed Dependencies" @@ -32,7 +31,7 @@ msg_info "Installing Mylar3" RELEASE=$(curl -s https://api.github.com/repos/mylar3/mylar3/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') msg_info "Installing Mylar3 ${RELEASE} (Patience)" mkdir -p /opt/mylar3 -tar zxvf <(curl -fsSL https://github.com/mylar3/mylar3/archive/refs/tags/${RELEASE}.tar.gz) -C /opt/mylar3 --strip-components=1 +tar zxvf <(curl -fsSL https://github.com/mylar3/mylar3/archive/refs/tags/${RELEASE}.tar.gz) -C /opt/mylar3 --strip-components=1 &>/dev/null cd /opt/mylar3 $STD python3 -m pip install -r requirements.txt echo "${RELEASE:1}" >/opt/${APPLICATION}_version.txt