From f70df3d963a6dcc626590a5f38d0e157736a0986 Mon Sep 17 00:00:00 2001 From: Miguel Muniz Date: Mon, 22 Jul 2024 14:14:32 -0700 Subject: [PATCH] finalized ascii art --- .history/ct/gitea_20240722141415.sh | 80 +++++++++++++++++++++++++++++ .history/ct/gitea_20240722141419.sh | 78 ++++++++++++++++++++++++++++ ct/gitea.sh | 6 --- 3 files changed, 158 insertions(+), 6 deletions(-) create mode 100644 .history/ct/gitea_20240722141415.sh create mode 100644 .history/ct/gitea_20240722141419.sh diff --git a/.history/ct/gitea_20240722141415.sh b/.history/ct/gitea_20240722141415.sh new file mode 100644 index 00000000..4ac0566e --- /dev/null +++ b/.history/ct/gitea_20240722141415.sh @@ -0,0 +1,80 @@ +#!/usr/bin/env bash +source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) +# Copyright (c) 2021-2024 tteck +# Author: tteck (tteckster) +# Co-author: Rogue-King +# License: MIT +# https://github.com/tteck/Proxmox/raw/main/LICENSE + +function header_info { +clear +cat <<"EOF" + _ __ + ______(_)/ / ___ ____ _ + / __ / // __/ _ \/ __ / + / /_/ / // /_/ __/ /_/ / + \__, /_/ \__/\___/\__,_/ +/____/ + _ __ + + +EOF +} +header_info +echo -e "Loading..." +APP="gitea" +var_disk="8" +var_cpu="1" +var_ram="512" +var_os="debian" +var_version="12" +variables +color +catch_errors + +function default_settings() { + CT_TYPE="1" + PW="" + CT_ID=$NEXTID + HN=$NSAPP + DISK_SIZE="$var_disk" + CORE_COUNT="$var_cpu" + RAM_SIZE="$var_ram" + BRG="vmbr0" + NET="dhcp" + GATE="" + APT_CACHER="" + APT_CACHER_IP="" + DISABLEIP6="no" + MTU="" + SD="" + NS="" + MAC="" + VLAN="" + SSH="no" + VERB="no" + echo_default +} + +function update_script() { +header_info +if [[ ! -f /etc/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}" +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 +msg_ok "Updated $APP Successfully" +exit +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${APP} should be reachable by going to the following URL. + ${BL}http://${IP}:3000${CL} \n" diff --git a/.history/ct/gitea_20240722141419.sh b/.history/ct/gitea_20240722141419.sh new file mode 100644 index 00000000..00867c8d --- /dev/null +++ b/.history/ct/gitea_20240722141419.sh @@ -0,0 +1,78 @@ +#!/usr/bin/env bash +source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) +# Copyright (c) 2021-2024 tteck +# Author: tteck (tteckster) +# Co-author: Rogue-King +# License: MIT +# https://github.com/tteck/Proxmox/raw/main/LICENSE + +function header_info { +clear +cat <<"EOF" + _ __ + ______(_)/ / ___ ____ _ + / __ / // __/ _ \/ __ / + / /_/ / // /_/ __/ /_/ / + \__, /_/ \__/\___/\__,_/ +/____/ + +EOF +} +header_info +echo -e "Loading..." +APP="gitea" +var_disk="8" +var_cpu="1" +var_ram="512" +var_os="debian" +var_version="12" +variables +color +catch_errors + +function default_settings() { + CT_TYPE="1" + PW="" + CT_ID=$NEXTID + HN=$NSAPP + DISK_SIZE="$var_disk" + CORE_COUNT="$var_cpu" + RAM_SIZE="$var_ram" + BRG="vmbr0" + NET="dhcp" + GATE="" + APT_CACHER="" + APT_CACHER_IP="" + DISABLEIP6="no" + MTU="" + SD="" + NS="" + MAC="" + VLAN="" + SSH="no" + VERB="no" + echo_default +} + +function update_script() { +header_info +if [[ ! -f /etc/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}" +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 +msg_ok "Updated $APP Successfully" +exit +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${APP} should be reachable by going to the following URL. + ${BL}http://${IP}:3000${CL} \n" diff --git a/ct/gitea.sh b/ct/gitea.sh index c2af18e4..00867c8d 100644 --- a/ct/gitea.sh +++ b/ct/gitea.sh @@ -15,12 +15,6 @@ cat <<"EOF" / /_/ / // /_/ __/ /_/ / \__, /_/ \__/\___/\__,_/ /____/ - _ __ - ______(_)/ /___ ____ _ - / __ / / __/ _ \/ __ / - / /_/ / / /_/ __/ /_/ / - \__, /_/\__/\___/\__,_/ -/____/ EOF }