mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-31 04:50:14 +00:00
cleanup 2
This commit is contained in:
parent
a8332bad6f
commit
15199bc942
@ -4,18 +4,17 @@ source <(curl -s https://raw.githubusercontent.com/kristocopani/ProxmoxVE/build/
|
|||||||
# Author: kristocopani
|
# Author: kristocopani
|
||||||
# License: MIT
|
# License: MIT
|
||||||
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
|
||||||
function header_info {
|
function header_info {
|
||||||
clear
|
clear
|
||||||
cat <<"EOF"
|
cat <<"EOF"
|
||||||
________ __
|
________ __
|
||||||
/_ __/ /_ ___ / / ____ __ ______ ____ ____
|
/_ __/ /_ ___ / / ____ __ ______ ____ ____
|
||||||
/ / / __ \/ _ \ / / / __ \/ / / / __ \/ __ `/ _ \
|
/ / / __ \/ _ \ / / / __ \/ / / / __ \/ __ `/ _ \
|
||||||
/ / / / / / __/ / /___/ /_/ / /_/ / / / / /_/ / __/
|
/ / / / / / __/ / /___/ /_/ / /_/ / / / / /_/ / __/
|
||||||
/_/ /_/ /_/\___/ /_____/\____/\__,_/_/ /_/\__, /\___/
|
/_/ /_/ /_/\___/ /_____/\____/\__,_/_/ /_/\__, /\___/
|
||||||
/____/
|
/____/
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
header_info
|
header_info
|
||||||
echo -e "Loading..."
|
echo -e "Loading..."
|
||||||
@ -58,7 +57,10 @@ function update_script() {
|
|||||||
check_container_storage
|
check_container_storage
|
||||||
check_container_resources
|
check_container_resources
|
||||||
|
|
||||||
if [[ ! -f /usr/lib/systemd/system/thelounge.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -f /usr/lib/systemd/system/thelounge.service ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/thelounge/thelounge-deb/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
RELEASE=$(curl -s https://api.github.com/repos/thelounge/thelounge-deb/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
if [[ "v${RELEASE}" != "$(sudo -u thelounge thelounge -v)" ]]; then
|
if [[ "v${RELEASE}" != "$(sudo -u thelounge thelounge -v)" ]]; then
|
||||||
msg_info "Stopping ${APP} Services"
|
msg_info "Stopping ${APP} Services"
|
||||||
@ -84,10 +86,10 @@ function update_script() {
|
|||||||
apt-get -y autoclean
|
apt-get -y autoclean
|
||||||
msg_ok "Cleaned"
|
msg_ok "Cleaned"
|
||||||
msg_ok "Updated Successfully"
|
msg_ok "Updated Successfully"
|
||||||
else
|
else
|
||||||
msg_ok "No update required. ${APP} is already at ${RELEASE}."
|
msg_ok "No update required. ${APP} is already at ${RELEASE}."
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
start
|
start
|
||||||
|
Loading…
Reference in New Issue
Block a user