mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "20a1d1ea69af473f7d13db48dcfd7c9ddab92c92" and "d2805145050d28f9f182eac14eda3dd490a644b5" have entirely different histories.
20a1d1ea69
...
d280514505
|
@ -69,7 +69,6 @@ if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}
|
||||||
systemctl stop homepage
|
systemctl stop homepage
|
||||||
wget -q https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz
|
wget -q https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz
|
||||||
tar -xzf v${RELEASE}.tar.gz
|
tar -xzf v${RELEASE}.tar.gz
|
||||||
rm -rf v${RELEASE}.tar.gz
|
|
||||||
cp -r homepage-${RELEASE}/* /opt/homepage/
|
cp -r homepage-${RELEASE}/* /opt/homepage/
|
||||||
rm -rf homepage-${RELEASE}
|
rm -rf homepage-${RELEASE}
|
||||||
cd /opt/homepage
|
cd /opt/homepage
|
||||||
|
|
|
@ -55,20 +55,10 @@ function default_settings() {
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -f /etc/systemd/system/jackett.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -f /etc/systemd/system/jackett.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
RELEASE=$(wget -q https://github.com/Jackett/Jackett/releases/latest -O - | grep "title>Release" | cut -d " " -f 4)
|
msg_info "Updating ${APP} LXC"
|
||||||
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
|
apt-get update &>/dev/null
|
||||||
msg_info "Updating ${APP}"
|
apt-get -y upgrade &>/dev/null
|
||||||
wget -q https://github.com/Jackett/Jackett/releases/download/$RELEASE/Jackett.Binaries.LinuxAMDx64.tar.gz
|
msg_ok "Updated ${APP} LXC"
|
||||||
systemctl stop jackett
|
|
||||||
rm -rf /opt/Jackett
|
|
||||||
tar -xzf Jackett.Binaries.LinuxAMDx64.tar.gz -C /opt
|
|
||||||
rm -rf Jackett.Binaries.LinuxAMDx64.tar.gz
|
|
||||||
systemctl start jackett
|
|
||||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
|
||||||
msg_ok "Updated ${APP} to ${RELEASE}"
|
|
||||||
else
|
|
||||||
msg_ok "No update required. ${APP} is already at ${RELEASE}"
|
|
||||||
fi
|
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,6 @@ RELEASE=$(curl -s https://api.github.com/repos/gethomepage/homepage/releases/lat
|
||||||
msg_info "Installing Homepage v${RELEASE} (Patience)"
|
msg_info "Installing Homepage v${RELEASE} (Patience)"
|
||||||
wget -q https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz
|
wget -q https://github.com/gethomepage/homepage/archive/refs/tags/v${RELEASE}.tar.gz
|
||||||
$STD tar -xzf v${RELEASE}.tar.gz
|
$STD tar -xzf v${RELEASE}.tar.gz
|
||||||
rm -rf v${RELEASE}.tar.gz
|
|
||||||
mkdir -p /opt/homepage/config
|
mkdir -p /opt/homepage/config
|
||||||
mv homepage-${RELEASE}/* /opt/homepage
|
mv homepage-${RELEASE}/* /opt/homepage
|
||||||
rm -rf homepage-${RELEASE}
|
rm -rf homepage-${RELEASE}
|
||||||
|
|
|
@ -24,7 +24,6 @@ RELEASE=$(wget -q https://github.com/Jackett/Jackett/releases/latest -O - | grep
|
||||||
wget -q https://github.com/Jackett/Jackett/releases/download/$RELEASE/Jackett.Binaries.LinuxAMDx64.tar.gz
|
wget -q https://github.com/Jackett/Jackett/releases/download/$RELEASE/Jackett.Binaries.LinuxAMDx64.tar.gz
|
||||||
tar -xzf Jackett.Binaries.LinuxAMDx64.tar.gz -C /opt
|
tar -xzf Jackett.Binaries.LinuxAMDx64.tar.gz -C /opt
|
||||||
rm -rf Jackett.Binaries.LinuxAMDx64.tar.gz
|
rm -rf Jackett.Binaries.LinuxAMDx64.tar.gz
|
||||||
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
|
||||||
msg_ok "Installed Jackett"
|
msg_ok "Installed Jackett"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
|
Loading…
Reference in New Issue