Update maxun.sh
This commit is contained in:
parent
01618e0817
commit
1f4486609b
@ -5,7 +5,6 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/
|
|||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# Source: https://github.com/getmaxun/maxun
|
# Source: https://github.com/getmaxun/maxun
|
||||||
|
|
||||||
|
|
||||||
APP="Maxun"
|
APP="Maxun"
|
||||||
var_tags="scraper"
|
var_tags="scraper"
|
||||||
var_disk="7"
|
var_disk="7"
|
||||||
@ -15,7 +14,6 @@ var_os="debian"
|
|||||||
var_version="12"
|
var_version="12"
|
||||||
var_unprivileged="1"
|
var_unprivileged="1"
|
||||||
|
|
||||||
|
|
||||||
header_info "$APP"
|
header_info "$APP"
|
||||||
variables
|
variables
|
||||||
color
|
color
|
||||||
@ -29,10 +27,8 @@ function update_script() {
|
|||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
github_get_release "getmaxun/maxun"
|
RELEASE=$(curl -s https://api.github.com/repos/getmaxun/maxun/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
RELEASE=$(cat "/opt/.maxun_version")
|
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
|
||||||
if [[ ! -f "/opt/.maxun_version" ]] || ! grep -Fxq "$RELEASE" /opt/.maxun_version; then
|
|
||||||
|
|
||||||
msg_info "Stopping Services"
|
msg_info "Stopping Services"
|
||||||
systemctl stop maxun minio redis
|
systemctl stop maxun minio redis
|
||||||
msg_ok "Services Stopped"
|
msg_ok "Services Stopped"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user