From 86b5c8e9b5d509409a395dde4b45d8e85cd1d3c0 Mon Sep 17 00:00:00 2001 From: Miguel Muniz Date: Mon, 22 Jul 2024 13:08:17 -0700 Subject: [PATCH] small changes --- .history/ct/gitea_20240722114620.sh | 89 +++++++++++++++++++ .history/ct/gitea_20240722114624.sh | 89 +++++++++++++++++++ .history/ct/gitea_20240722114629.sh | 89 +++++++++++++++++++ .history/ct/gitea_20240722114710.sh | 89 +++++++++++++++++++ .history/ct/gitea_20240722114723.sh | 89 +++++++++++++++++++ .history/ct/gitea_20240722114738.sh | 86 ++++++++++++++++++ .history/ct/gitea_20240722114746.sh | 84 +++++++++++++++++ .history/ct/gitea_20240722115114.sh | 80 +++++++++++++++++ .history/ct/gitea_20240722115117.sh | 78 ++++++++++++++++ .history/ct/gitea_20240722115118.sh | 79 ++++++++++++++++ .history/ct/gitea_20240722115119.sh | 78 ++++++++++++++++ .history/ct/gitea_20240722115218.sh | 78 ++++++++++++++++ .history/ct/gitea_20240722115220.sh | 78 ++++++++++++++++ .history/ct/gitea_20240722115221.sh | 78 ++++++++++++++++ .history/ct/gitea_20240722115233.sh | 78 ++++++++++++++++ .history/ct/gitea_20240722115238.sh | 78 ++++++++++++++++ .history/ct/gitea_20240722115244.sh | 86 ++++++++++++++++++ .history/ct/gitea_20240722115247.sh | 86 ++++++++++++++++++ .history/ct/gitea_20240722115252.sh | 86 ++++++++++++++++++ .history/ct/gitea_20240722115253.sh | 86 ++++++++++++++++++ .history/ct/gitea_20240722115256.sh | 86 ++++++++++++++++++ .history/ct/gitea_20240722115257.sh | 86 ++++++++++++++++++ .history/ct/gitea_20240722115303.sh | 86 ++++++++++++++++++ .history/ct/gitea_20240722115319.sh | 86 ++++++++++++++++++ .history/ct/gitea_20240722115322.sh | 86 ++++++++++++++++++ .history/ct/gitea_20240722115404.sh | 84 +++++++++++++++++ .../install/gitea-install_20240722130602.sh | 80 +++++++++++++++++ .../install/gitea-install_20240722130605.sh | 81 +++++++++++++++++ ct/gitea.sh | 25 +++--- install/gitea-install.sh | 1 + 30 files changed, 2350 insertions(+), 15 deletions(-) create mode 100644 .history/ct/gitea_20240722114620.sh create mode 100644 .history/ct/gitea_20240722114624.sh create mode 100644 .history/ct/gitea_20240722114629.sh create mode 100644 .history/ct/gitea_20240722114710.sh create mode 100644 .history/ct/gitea_20240722114723.sh create mode 100644 .history/ct/gitea_20240722114738.sh create mode 100644 .history/ct/gitea_20240722114746.sh create mode 100644 .history/ct/gitea_20240722115114.sh create mode 100644 .history/ct/gitea_20240722115117.sh create mode 100644 .history/ct/gitea_20240722115118.sh create mode 100644 .history/ct/gitea_20240722115119.sh create mode 100644 .history/ct/gitea_20240722115218.sh create mode 100644 .history/ct/gitea_20240722115220.sh create mode 100644 .history/ct/gitea_20240722115221.sh create mode 100644 .history/ct/gitea_20240722115233.sh create mode 100644 .history/ct/gitea_20240722115238.sh create mode 100644 .history/ct/gitea_20240722115244.sh create mode 100644 .history/ct/gitea_20240722115247.sh create mode 100644 .history/ct/gitea_20240722115252.sh create mode 100644 .history/ct/gitea_20240722115253.sh create mode 100644 .history/ct/gitea_20240722115256.sh create mode 100644 .history/ct/gitea_20240722115257.sh create mode 100644 .history/ct/gitea_20240722115303.sh create mode 100644 .history/ct/gitea_20240722115319.sh create mode 100644 .history/ct/gitea_20240722115322.sh create mode 100644 .history/ct/gitea_20240722115404.sh create mode 100644 .history/install/gitea-install_20240722130602.sh create mode 100644 .history/install/gitea-install_20240722130605.sh diff --git a/.history/ct/gitea_20240722114620.sh b/.history/ct/gitea_20240722114620.sh new file mode 100644 index 00000000..1d5e277a --- /dev/null +++ b/.history/ct/gitea_20240722114620.sh @@ -0,0 +1,89 @@ +#!/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 /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}" +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 "Success ${RELEASE}" +# else +# msg_ok "No update required ${APP} is already at ${RELEASE}" +# fi +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_20240722114624.sh b/.history/ct/gitea_20240722114624.sh new file mode 100644 index 00000000..a49d76f5 --- /dev/null +++ b/.history/ct/gitea_20240722114624.sh @@ -0,0 +1,89 @@ +#!/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 /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}" +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 "Success${RELEASE}" +# else +# msg_ok "No update required ${APP} is already at ${RELEASE}" +# fi +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_20240722114629.sh b/.history/ct/gitea_20240722114629.sh new file mode 100644 index 00000000..4ed59f84 --- /dev/null +++ b/.history/ct/gitea_20240722114629.sh @@ -0,0 +1,89 @@ +#!/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 /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}" +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 Successfully" +# else +# msg_ok "No update required ${APP} is already at ${RELEASE}" +# fi +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_20240722114710.sh b/.history/ct/gitea_20240722114710.sh new file mode 100644 index 00000000..1c789109 --- /dev/null +++ b/.history/ct/gitea_20240722114710.sh @@ -0,0 +1,89 @@ +#!/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 /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}" +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 $APP Successfully" +# else +# msg_ok "No update required ${APP} is already at ${RELEASE}" +# fi +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_20240722114723.sh b/.history/ct/gitea_20240722114723.sh new file mode 100644 index 00000000..2df62f26 --- /dev/null +++ b/.history/ct/gitea_20240722114723.sh @@ -0,0 +1,89 @@ +#!/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 /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}" +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 $APP Successfully" +# else +# msg_ok "No update required ${APP} is already at ${RELEASE}" +# fi +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_20240722114738.sh b/.history/ct/gitea_20240722114738.sh new file mode 100644 index 00000000..191cf27c --- /dev/null +++ b/.history/ct/gitea_20240722114738.sh @@ -0,0 +1,86 @@ +#!/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 /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}" +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 $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_20240722114746.sh b/.history/ct/gitea_20240722114746.sh new file mode 100644 index 00000000..c6b3670d --- /dev/null +++ b/.history/ct/gitea_20240722114746.sh @@ -0,0 +1,84 @@ +#!/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 /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}" +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_20240722115114.sh b/.history/ct/gitea_20240722115114.sh new file mode 100644 index 00000000..48d6e815 --- /dev/null +++ b/.history/ct/gitea_20240722115114.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 /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}" +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_20240722115117.sh b/.history/ct/gitea_20240722115117.sh new file mode 100644 index 00000000..282c6743 --- /dev/null +++ b/.history/ct/gitea_20240722115117.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 /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}" +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_20240722115118.sh b/.history/ct/gitea_20240722115118.sh new file mode 100644 index 00000000..f21bd995 --- /dev/null +++ b/.history/ct/gitea_20240722115118.sh @@ -0,0 +1,79 @@ +#!/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 /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}" +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_20240722115119.sh b/.history/ct/gitea_20240722115119.sh new file mode 100644 index 00000000..282c6743 --- /dev/null +++ b/.history/ct/gitea_20240722115119.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 /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}" +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_20240722115218.sh b/.history/ct/gitea_20240722115218.sh new file mode 100644 index 00000000..86e030bf --- /dev/null +++ b/.history/ct/gitea_20240722115218.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 /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}" +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_20240722115220.sh b/.history/ct/gitea_20240722115220.sh new file mode 100644 index 00000000..0a9e3894 --- /dev/null +++ b/.history/ct/gitea_20240722115220.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 /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}" +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_20240722115221.sh b/.history/ct/gitea_20240722115221.sh new file mode 100644 index 00000000..5a89ca5f --- /dev/null +++ b/.history/ct/gitea_20240722115221.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 /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}" +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_20240722115233.sh b/.history/ct/gitea_20240722115233.sh new file mode 100644 index 00000000..579049b3 --- /dev/null +++ b/.history/ct/gitea_20240722115233.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 /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}" +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_20240722115238.sh b/.history/ct/gitea_20240722115238.sh new file mode 100644 index 00000000..5a89ca5f --- /dev/null +++ b/.history/ct/gitea_20240722115238.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 /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}" +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_20240722115244.sh b/.history/ct/gitea_20240722115244.sh new file mode 100644 index 00000000..403960c3 --- /dev/null +++ b/.history/ct/gitea_20240722115244.sh @@ -0,0 +1,86 @@ +#!/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 /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}" +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_20240722115247.sh b/.history/ct/gitea_20240722115247.sh new file mode 100644 index 00000000..9eeca81d --- /dev/null +++ b/.history/ct/gitea_20240722115247.sh @@ -0,0 +1,86 @@ +#!/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 /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}" +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_20240722115252.sh b/.history/ct/gitea_20240722115252.sh new file mode 100644 index 00000000..6b415b13 --- /dev/null +++ b/.history/ct/gitea_20240722115252.sh @@ -0,0 +1,86 @@ +#!/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 /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}" +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_20240722115253.sh b/.history/ct/gitea_20240722115253.sh new file mode 100644 index 00000000..115b0283 --- /dev/null +++ b/.history/ct/gitea_20240722115253.sh @@ -0,0 +1,86 @@ +#!/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 /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}" +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_20240722115256.sh b/.history/ct/gitea_20240722115256.sh new file mode 100644 index 00000000..ab902650 --- /dev/null +++ b/.history/ct/gitea_20240722115256.sh @@ -0,0 +1,86 @@ +#!/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 /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}" +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_20240722115257.sh b/.history/ct/gitea_20240722115257.sh new file mode 100644 index 00000000..1b29b10a --- /dev/null +++ b/.history/ct/gitea_20240722115257.sh @@ -0,0 +1,86 @@ +#!/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 /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}" +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_20240722115303.sh b/.history/ct/gitea_20240722115303.sh new file mode 100644 index 00000000..8629ba9e --- /dev/null +++ b/.history/ct/gitea_20240722115303.sh @@ -0,0 +1,86 @@ +#!/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 /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}" +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_20240722115319.sh b/.history/ct/gitea_20240722115319.sh new file mode 100644 index 00000000..acd30374 --- /dev/null +++ b/.history/ct/gitea_20240722115319.sh @@ -0,0 +1,86 @@ +#!/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 /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}" +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_20240722115322.sh b/.history/ct/gitea_20240722115322.sh new file mode 100644 index 00000000..8629ba9e --- /dev/null +++ b/.history/ct/gitea_20240722115322.sh @@ -0,0 +1,86 @@ +#!/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 /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}" +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_20240722115404.sh b/.history/ct/gitea_20240722115404.sh new file mode 100644 index 00000000..c6ae7932 --- /dev/null +++ b/.history/ct/gitea_20240722115404.sh @@ -0,0 +1,84 @@ +#!/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 /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}" +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/install/gitea-install_20240722130602.sh b/.history/install/gitea-install_20240722130602.sh new file mode 100644 index 00000000..6ca3e834 --- /dev/null +++ b/.history/install/gitea-install_20240722130602.sh @@ -0,0 +1,80 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2024 tteck +# Author: tteck (tteckster) +# Co-author: Rogue-King +# Base Script: apalrd (alpard.net) +# License: MIT +# https://github.com/tteck/Proxmox/raw/main/LICENSE + +source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt-get install -y git +$STD apt-get install -y sudo +$STD apt-get install -y mc +msg_ok "Installed Dependencies" + +msg_info "Installing Gitea" +RELEASE=$(wget -q https://github.com/go-gitea/gitea/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) +VERSION=${RELEASE#v} +wget -q https://github.com/go-gitea/gitea/releases/download/$RELEASE/gitea-$VERSION-linux-amd64 +mv gitea* /usr/local/bin/gitea +chmod +x /usr/local/bin/gitea +msg_info "Installed Gitea" + +msg_info "Creating Gitea user" +adduser --system --group --disabled-password --home /etc/gitea gitea + +msg_info "Creating directory structure" +mkdir -p /var/lib/gitea/{custom,data,log} +chown -R gitea:gitea /var/lib/gitea/ +chmod -R 750 /var/lib/gitea/ +chown root:gitea /etc/gitea +chmod 770 /etc/gitea +msg_info "Creating Service" +cat </etc/systemd/system/gitea.service +[Unit] +Description=Gitea (Git with a cup of tea) +After=syslog.target +After=network.target + +[Service] +# Uncomment the next line if you have repos with lots of files and get a HTTP 500 error because of that +# LimitNOFILE=524288:524288 +RestartSec=2s +Type=notify +User=gitea +Group=gitea +#The mount point we added to the container +WorkingDirectory=/var/lib/gitea +#Create directory in /run +RuntimeDirectory=gitea +ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini +Restart=always +Environment=USER=gitea HOME=/var/lib/gitea/data GITEA_WORK_DIR=/var/lib/gitea +WatchdogSec=30s +#Capabilities to bind to low-numbered ports +CapabilityBoundingSet=CAP_NET_BIND_SERVICE +AmbientCapabilities=CAP_NET_BIND_SERVICE + +[Install] +WantedBy=multi-user.target +EOF +systemctl daemon-reload +systemctl enable -q --now gitea +msg_ok "Created Service" + +motd_ssh +customize + +msg_info "Cleaning up" +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned" \ No newline at end of file diff --git a/.history/install/gitea-install_20240722130605.sh b/.history/install/gitea-install_20240722130605.sh new file mode 100644 index 00000000..b859a0c7 --- /dev/null +++ b/.history/install/gitea-install_20240722130605.sh @@ -0,0 +1,81 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2024 tteck +# Author: tteck (tteckster) +# Co-author: Rogue-King +# Base Script: apalrd (alpard.net) +# License: MIT +# https://github.com/tteck/Proxmox/raw/main/LICENSE + +source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt-get install -y git +$STD apt-get install -y sudo +$STD apt-get install -y mc +msg_ok "Installed Dependencies" + +msg_info "Installing Gitea" +RELEASE=$(wget -q https://github.com/go-gitea/gitea/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) +VERSION=${RELEASE#v} +wget -q https://github.com/go-gitea/gitea/releases/download/$RELEASE/gitea-$VERSION-linux-amd64 +mv gitea* /usr/local/bin/gitea +chmod +x /usr/local/bin/gitea +msg_info "Installed Gitea" + +msg_info "Creating Gitea user" +adduser --system --group --disabled-password --home /etc/gitea gitea + +msg_info "Creating directory structure" +mkdir -p /var/lib/gitea/{custom,data,log} +chown -R gitea:gitea /var/lib/gitea/ +chmod -R 750 /var/lib/gitea/ +chown root:gitea /etc/gitea +chmod 770 /etc/gitea + +msg_info "Creating Service" +cat </etc/systemd/system/gitea.service +[Unit] +Description=Gitea (Git with a cup of tea) +After=syslog.target +After=network.target + +[Service] +# Uncomment the next line if you have repos with lots of files and get a HTTP 500 error because of that +# LimitNOFILE=524288:524288 +RestartSec=2s +Type=notify +User=gitea +Group=gitea +#The mount point we added to the container +WorkingDirectory=/var/lib/gitea +#Create directory in /run +RuntimeDirectory=gitea +ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini +Restart=always +Environment=USER=gitea HOME=/var/lib/gitea/data GITEA_WORK_DIR=/var/lib/gitea +WatchdogSec=30s +#Capabilities to bind to low-numbered ports +CapabilityBoundingSet=CAP_NET_BIND_SERVICE +AmbientCapabilities=CAP_NET_BIND_SERVICE + +[Install] +WantedBy=multi-user.target +EOF +systemctl daemon-reload +systemctl enable -q --now gitea +msg_ok "Created Service" + +motd_ssh +customize + +msg_info "Cleaning up" +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned" \ No newline at end of file diff --git a/ct/gitea.sh b/ct/gitea.sh index d05d7ee8..c6ae7932 100644 --- a/ct/gitea.sh +++ b/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 } diff --git a/install/gitea-install.sh b/install/gitea-install.sh index c66787a0..b859a0c7 100644 --- a/install/gitea-install.sh +++ b/install/gitea-install.sh @@ -39,6 +39,7 @@ chmod -R 750 /var/lib/gitea/ chown root:gitea /etc/gitea chmod 770 /etc/gitea +msg_info "Creating Service" cat </etc/systemd/system/gitea.service [Unit] Description=Gitea (Git with a cup of tea)