mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
small changes
This commit is contained in:
parent
6991f3fd97
commit
86b5c8e9b5
30 changed files with 2350 additions and 15 deletions
25
ct/gitea.sh
25
ct/gitea.sh
|
@ -9,18 +9,18 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build
|
|||
function header_info {
|
||||
clear
|
||||
cat <<"EOF"
|
||||
_ __
|
||||
______(_)_/ /___ ____ _
|
||||
_ __
|
||||
______(_)/ / ___ ____ _
|
||||
/ __ / // __/ _ \/ __ /
|
||||
/ /_/ / // /_/ __/ /_/ /
|
||||
\__, /_/ \__/\___/\__,_/
|
||||
/____/
|
||||
|
||||
______ _ __
|
||||
/ ____/(_)_/ /___ ____ _
|
||||
/ / __// // __/ _ \/ __ /
|
||||
/ /_/ // // /_/ __/ /_/ /
|
||||
\____//_/ \__/\___/\__,_/
|
||||
_ __
|
||||
______(_)/ /___ ____ _
|
||||
/ __ / / __/ _ \/ __ /
|
||||
/ /_/ / / /_/ __/ /_/ /
|
||||
\__, /_/\__/\___/\__,_/
|
||||
/____/
|
||||
|
||||
EOF
|
||||
}
|
||||
|
@ -65,18 +65,13 @@ header_info
|
|||
if [[ ! -f /lib/systemd/system/gitea.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||
RELEASE=$(wget -q https://github.com/go-gitea/gitea/releases/latest -O - | grep "title>Release" | cut -d " " -f 4)
|
||||
VERSION=${RELEASE#v}
|
||||
msg_info "Updating Gitea to ${RELEASE}"
|
||||
msg_info "Updating gitea to ${RELEASE}"
|
||||
wget -q https://github.com/go-gitea/gitea/releases/download/$RELEASE/gitea-$VERSION-linux-amd64
|
||||
systemctl stop gitea
|
||||
rm -rf /usr/local/bin/gitea
|
||||
mv gitea* /usr/local/bin/gitea
|
||||
systemctl start gitea
|
||||
apt-get update &>/dev/null
|
||||
apt-get -y upgrade &>/dev/nullexit
|
||||
msg_ok "Updated Gitea to ${RELEASE}"
|
||||
# else
|
||||
# msg_ok "No update required ${APP} is already at ${RELEASE}"
|
||||
# fi
|
||||
msg_ok "Updated $APP Successfully"
|
||||
exit
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue