This commit is contained in:
Frank Alvarado 2024-06-10 23:14:00 -05:00
parent 55dceb7238
commit b4739ee3c3
2 changed files with 2 additions and 3 deletions

View file

@ -59,7 +59,7 @@ if [[ ! -d /opt/mylar3 ]]; then msg_error "No ${APP} Installation Found!"; exit;
msg_info "Updating $APP" msg_info "Updating $APP"
systemctl stop mylar3.service 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) }') 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 cd /opt/mylar3
python3 -m pip install -r requirements.txt &>/dev/null python3 -m pip install -r requirements.txt &>/dev/null
systemctl start mylar3.service systemctl start mylar3.service

View file

@ -17,7 +17,6 @@ msg_info "Installing Dependencies"
$STD apt-get install -y curl $STD apt-get install -y curl
$STD apt-get install -y sudo $STD apt-get install -y sudo
$STD apt-get install -y mc $STD apt-get install -y mc
$STD apt-get install -y git
$STD apt-get install -y pip $STD apt-get install -y pip
msg_ok "Installed Dependencies" 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) }') 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)" msg_info "Installing Mylar3 ${RELEASE} (Patience)"
mkdir -p /opt/mylar3 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 cd /opt/mylar3
$STD python3 -m pip install -r requirements.txt $STD python3 -m pip install -r requirements.txt
echo "${RELEASE:1}" >/opt/${APPLICATION}_version.txt echo "${RELEASE:1}" >/opt/${APPLICATION}_version.txt