From 667ac4af836927e997891e8491bf158d57bb0f93 Mon Sep 17 00:00:00 2001 From: Rogue-King Date: Thu, 25 Jul 2024 11:25:20 -0700 Subject: [PATCH 1/5] reformated install process and put them all under "installing Gitea" --- install/gitea-install.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/install/gitea-install.sh b/install/gitea-install.sh index ddc3dddc..a58d44e7 100644 --- a/install/gitea-install.sh +++ b/install/gitea-install.sh @@ -23,20 +23,16 @@ 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 | sed 's/^v//') -$STD wget -q https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-linux-amd64 +wget -q https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-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 > /dev/null - -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 "Installed Gitea" msg_info "Creating Service" cat </etc/systemd/system/gitea.service From c1b130b5c500a1d30af0f0c58de33c05d337c2c3 Mon Sep 17 00:00:00 2001 From: Rogue-King Date: Thu, 25 Jul 2024 11:30:25 -0700 Subject: [PATCH 2/5] Debugging --- ct/gitea.sh | 2 +- misc/build.func | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/gitea.sh b/ct/gitea.sh index 550ac3c7..4f9a9366 100644 --- a/ct/gitea.sh +++ b/ct/gitea.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) +source <(curl -s https://raw.githubusercontent.com/Rogue-King/Proxmox/main/misc/build.func) # Copyright (c) 2021-2024 tteck # Author: tteck (tteckster) # Co-author: Rogue-King diff --git a/misc/build.func b/misc/build.func index b650a6c0..8fd95b4e 100644 --- a/misc/build.func +++ b/misc/build.func @@ -633,7 +633,7 @@ http://dl-cdn.alpinelinux.org/alpine/latest-stable/community EOF' pct exec "$CTID" -- ash -c "apk add bash >/dev/null" fi - lxc-attach -n "$CTID" -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit + lxc-attach -n "$CTID" -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/Rogue-King/Proxmox/main/install/$var_install.sh)" || exit } From fddf4e0aa866a5522408c7905157e1e63244727b Mon Sep 17 00:00:00 2001 From: Rogue-King Date: Thu, 25 Jul 2024 11:35:21 -0700 Subject: [PATCH 3/5] more debugging statements, note: redirected both repo and branch --- ct/gitea.sh | 2 +- misc/build.func | 2 +- misc/install.func | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ct/gitea.sh b/ct/gitea.sh index 4f9a9366..bb9328e3 100644 --- a/ct/gitea.sh +++ b/ct/gitea.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/Rogue-King/Proxmox/main/misc/build.func) +source <(curl -s https://raw.githubusercontent.com/Rogue-King/Proxmox/gitea/misc/build.func) # Copyright (c) 2021-2024 tteck # Author: tteck (tteckster) # Co-author: Rogue-King diff --git a/misc/build.func b/misc/build.func index 8fd95b4e..3bd78a8a 100644 --- a/misc/build.func +++ b/misc/build.func @@ -633,7 +633,7 @@ http://dl-cdn.alpinelinux.org/alpine/latest-stable/community EOF' pct exec "$CTID" -- ash -c "apk add bash >/dev/null" fi - lxc-attach -n "$CTID" -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/Rogue-King/Proxmox/main/install/$var_install.sh)" || exit + lxc-attach -n "$CTID" -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/Rogue-King/Proxmox/gitea/install/$var_install.sh)" || exit } diff --git a/misc/install.func b/misc/install.func index 660ea2c4..c38b00e5 100644 --- a/misc/install.func +++ b/misc/install.func @@ -198,6 +198,6 @@ EOF systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') msg_ok "Customized Container" fi - echo "bash -c \"\$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/${app}.sh)\"" >/usr/bin/update + echo "bash -c \"\$(wget -qLO - https://github.com/Rogue-King/Proxmox/raw/gitea/ct/${app}.sh)\"" >/usr/bin/update chmod +x /usr/bin/update } From 65b0964ff3ca5d22f9f6ebc703122f1873c9b358 Mon Sep 17 00:00:00 2001 From: Rogue-King Date: Thu, 25 Jul 2024 11:40:53 -0700 Subject: [PATCH 4/5] more debugging --- misc/build.func | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/build.func b/misc/build.func index 3bd78a8a..3cc8cdb4 100644 --- a/misc/build.func +++ b/misc/build.func @@ -539,7 +539,7 @@ build_container() { if [ "$var_os" == "alpine" ]; then export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/alpine-install.func)" else - export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/install.func)" + export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/Rogue-King/Proxmox/gitea/misc/install.func)" fi export CACHER="$APT_CACHER" export CACHER_IP="$APT_CACHER_IP" From 643299ccba85573a52ee83789f9033f1c99c92f1 Mon Sep 17 00:00:00 2001 From: Rogue-King Date: Thu, 25 Jul 2024 12:01:51 -0700 Subject: [PATCH 5/5] cleaning up debugging/redirects --- ct/gitea.sh | 2 +- misc/build.func | 4 ++-- misc/install.func | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ct/gitea.sh b/ct/gitea.sh index bb9328e3..550ac3c7 100644 --- a/ct/gitea.sh +++ b/ct/gitea.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -s https://raw.githubusercontent.com/Rogue-King/Proxmox/gitea/misc/build.func) +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 diff --git a/misc/build.func b/misc/build.func index 3cc8cdb4..b650a6c0 100644 --- a/misc/build.func +++ b/misc/build.func @@ -539,7 +539,7 @@ build_container() { if [ "$var_os" == "alpine" ]; then export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/alpine-install.func)" else - export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/Rogue-King/Proxmox/gitea/misc/install.func)" + export FUNCTIONS_FILE_PATH="$(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/install.func)" fi export CACHER="$APT_CACHER" export CACHER_IP="$APT_CACHER_IP" @@ -633,7 +633,7 @@ http://dl-cdn.alpinelinux.org/alpine/latest-stable/community EOF' pct exec "$CTID" -- ash -c "apk add bash >/dev/null" fi - lxc-attach -n "$CTID" -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/Rogue-King/Proxmox/gitea/install/$var_install.sh)" || exit + lxc-attach -n "$CTID" -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit } diff --git a/misc/install.func b/misc/install.func index c38b00e5..660ea2c4 100644 --- a/misc/install.func +++ b/misc/install.func @@ -198,6 +198,6 @@ EOF systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') msg_ok "Customized Container" fi - echo "bash -c \"\$(wget -qLO - https://github.com/Rogue-King/Proxmox/raw/gitea/ct/${app}.sh)\"" >/usr/bin/update + echo "bash -c \"\$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/${app}.sh)\"" >/usr/bin/update chmod +x /usr/bin/update }