From 80fb3ee841717c94088d9cb77bbaaf8c43186a88 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 21 Jul 2024 07:11:36 -0400 Subject: [PATCH 01/14] Update update-lxcs-cron.sh fixes https://github.com/tteck/Proxmox/issues/3408 --- misc/update-lxcs-cron.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/misc/update-lxcs-cron.sh b/misc/update-lxcs-cron.sh index 23c448520..04827734c 100644 --- a/misc/update-lxcs-cron.sh +++ b/misc/update-lxcs-cron.sh @@ -35,7 +35,6 @@ for container in $(pct list | awk '{if(NR>1) print $1}'); do fi done if [ "$excluded" == true ]; then - header_info echo -e "[Info] Skipping $container" sleep 1 else From d18e37166dd52fa8074281add9f96979b9b1cf59 Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 22 Jul 2024 06:39:34 -0400 Subject: [PATCH 02/14] Update bunkerweb-install.sh Refactor to eliminate script execution within another script, making the code easier to review. --- install/bunkerweb-install.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/install/bunkerweb-install.sh b/install/bunkerweb-install.sh index a26cb4247..4f15709cc 100644 --- a/install/bunkerweb-install.sh +++ b/install/bunkerweb-install.sh @@ -17,10 +17,9 @@ msg_info "Installing Dependencies" $STD apt-get install -y curl $STD apt-get install -y sudo $STD apt-get install -y mc -$STD apt-get install -y gnupg2 -$STD apt-get install -y ca-certificates +$STD apt-get install -y gpg +$STD apt-get install -y apt-transport-https $STD apt-get install -y lsb-release -$STD apt-get install -y debian-archive-keyring msg_ok "Installed Dependencies" msg_info "Installing Nginx" @@ -31,9 +30,11 @@ $STD apt-get install -y nginx msg_ok "Installed Nginx" RELEASE=$(curl -s https://api.github.com/repos/bunkerity/bunkerweb/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -msg_info "Installing BunkerWeb v${RELEASE}" +msg_info "Installing BunkerWeb v${RELEASE} (Patience)" +curl -fsSL "https://repo.bunkerweb.io/bunkerity/bunkerweb/gpgkey" | gpg --dearmor >/etc/apt/keyrings/bunkerity_bunkerweb-archive-keyring.gpg +echo "deb [signed-by=/etc/apt/keyrings/bunkerity_bunkerweb-archive-keyring.gpg] https://repo.bunkerweb.io/bunkerity/bunkerweb/debian/ bookworm main" >/etc/apt/sources.list.d/bunkerity_bunkerweb.list +$STD apt-get update export UI_WIZARD=1 -curl -sSL https://packagecloud.io/install/repositories/bunkerity/bunkerweb/script.deb.sh | bash &>/dev/null $STD apt-get install -y bunkerweb=${RELEASE} cat </etc/apt/preferences.d/bunkerweb Package: bunkerweb From 8db7e57819ccbee1f8dd8bd8cf1c1010d71f7035 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 23 Jul 2024 12:13:35 -0400 Subject: [PATCH 03/14] Update keycloak.sh fix URL --- ct/keycloak.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/keycloak.sh b/ct/keycloak.sh index 5e461722f..638273133 100644 --- a/ct/keycloak.sh +++ b/ct/keycloak.sh @@ -69,4 +69,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${APP} should be reachable by going to the following URL. - ${BL}http://${IP}:8080${CL} \n" + ${BL}http://${IP}:8080/admin${CL} \n" From b73557c14fba7ee9a6350f8531685b1c90c17c79 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 25 Jul 2024 13:50:00 -0400 Subject: [PATCH 04/14] Update ersatztv-install.sh fixes https://github.com/tteck/Proxmox/issues/3422 --- install/ersatztv-install.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/install/ersatztv-install.sh b/install/ersatztv-install.sh index e40686120..939880f39 100644 --- a/install/ersatztv-install.sh +++ b/install/ersatztv-install.sh @@ -15,21 +15,21 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies (Patience)" -$STD apt-get install -y --no-install-recommends \ - ffmpeg \ - build-essential \ - unzip \ - pkg-config \ - curl \ - sudo \ - git \ - make \ - mc +msg_info "Installing Dependencies" +$STD apt-get install -y curl +$STD apt-get install -y sudo +$STD apt-get install -y mc msg_ok "Installed Dependencies" +msg_info "Installing FFmpeg (Patience)" +echo "deb http://deb.debian.org/debian/ sid main" >/etc/apt/sources.list.d/sid.list +$STD apt update +DEBIAN_FRONTEND=noninteractive $STD apt install -t sid ffmpeg -y +rm /etc/apt/sources.list.d/sid.list +$STD apt update +msg_ok "Installed FFmpeg" -msg_info "Installing ErsatzTV " +msg_info "Installing ErsatzTV" RELEASE=$(curl -s https://api.github.com/repos/ErsatzTV/ErsatzTV/releases | grep -oP '"tag_name": "\K[^"]+' | head -n 1) wget -qO- "https://github.com/ErsatzTV/ErsatzTV/releases/download/${RELEASE}/ErsatzTV-${RELEASE}-linux-x64.tar.gz" | tar -xz -C /opt mv "/opt/ErsatzTV-${RELEASE}-linux-x64" /opt/ErsatzTV From ae49faec9309a3570345c8e0fed9464a73a5d413 Mon Sep 17 00:00:00 2001 From: Miguel Muniz Date: Fri, 26 Jul 2024 02:07:38 -0700 Subject: [PATCH 05/14] Add new LXC: Gitea (#3419) --- ct/gitea.sh | 76 +++++++++++++++++++++++++++++++++++++++ install/gitea-install.sh | 77 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 153 insertions(+) create mode 100644 ct/gitea.sh create mode 100644 install/gitea-install.sh diff --git a/ct/gitea.sh b/ct/gitea.sh new file mode 100644 index 000000000..155d7fe02 --- /dev/null +++ b/ct/gitea.sh @@ -0,0 +1,76 @@ +#!/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 /usr/local/bin/gitea ]]; 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 | sed 's/^v//') +msg_info "Updating $APP to ${RELEASE}" +wget -q https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$RELEASE-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/install/gitea-install.sh b/install/gitea-install.sh new file mode 100644 index 000000000..169136a2a --- /dev/null +++ b/install/gitea-install.sh @@ -0,0 +1,77 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2024 tteck +# Author: tteck (tteckster) +# Co-author: Rogue-King +# 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 curl +$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 | sed 's/^v//') +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 +adduser --system --group --disabled-password --home /etc/gitea gitea > /dev/null +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_ok "Installed 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 notify and watchdog if you want to use them +# 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=simple +#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 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" From 136f6671265b3fdc826023322000caecb4c866f9 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 26 Jul 2024 05:22:40 -0400 Subject: [PATCH 06/14] Update gitea-install.sh add SQLite3 --- install/gitea-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/gitea-install.sh b/install/gitea-install.sh index 169136a2a..2ed5e7514 100644 --- a/install/gitea-install.sh +++ b/install/gitea-install.sh @@ -19,6 +19,7 @@ $STD apt-get install -y git $STD apt-get install -y curl $STD apt-get install -y sudo $STD apt-get install -y mc +$STD apt-get install -y sqlite3 msg_ok "Installed Dependencies" msg_info "Installing Gitea" From 2c58bc987c15911d9efa6ae2e690ddbc43cb2358 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 26 Jul 2024 05:37:09 -0400 Subject: [PATCH 07/14] Update gitea.sh increase ram to 1024 --- ct/gitea.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/gitea.sh b/ct/gitea.sh index 155d7fe02..f1fc716bc 100644 --- a/ct/gitea.sh +++ b/ct/gitea.sh @@ -22,7 +22,7 @@ echo -e "Loading..." APP="Gitea" var_disk="8" var_cpu="1" -var_ram="512" +var_ram="1024" var_os="debian" var_version="12" variables From 32ae8c1f4fbb5ca59a0abbfbd3901cb5bcdeef27 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 26 Jul 2024 06:03:56 -0400 Subject: [PATCH 08/14] Update CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 517cda16e..f8f1fb140 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ - All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment. +## 2024-07-26 + +### Changed + +- **Gitea LXC** [(View Source)](https://raw.githubusercontent.com/tteck/Proxmox/main/install/gitea-install.sh) + - NEW Script ## 2024-06-30 From f59c1227be20d1d71cd751baa74571093be73317 Mon Sep 17 00:00:00 2001 From: vrozaksen <87482223+vrozaksen@users.noreply.github.com> Date: Fri, 26 Jul 2024 16:04:40 +0000 Subject: [PATCH 09/14] Update gitea.sh (#3426) Fix permissions https://docs.gitea.com/installation/install-from-binary --- ct/gitea.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ct/gitea.sh b/ct/gitea.sh index f1fc716bc..6ab816151 100644 --- a/ct/gitea.sh +++ b/ct/gitea.sh @@ -62,6 +62,7 @@ wget -q https://github.com/go-gitea/gitea/releases/download/v$RELEASE/gitea-$REL systemctl stop gitea rm -rf /usr/local/bin/gitea mv gitea* /usr/local/bin/gitea +chmod +x /usr/local/bin/gitea systemctl start gitea msg_ok "Updated $APP Successfully" exit From a35e23916edf998dac5565fbaf67c6348dff7b2b Mon Sep 17 00:00:00 2001 From: Peter Stalman Date: Sat, 27 Jul 2024 03:54:20 -0700 Subject: [PATCH 10/14] Update traefik-install.sh (#3431) --- install/traefik-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/traefik-install.sh b/install/traefik-install.sh index 7b5c44b3b..f418b68b2 100644 --- a/install/traefik-install.sh +++ b/install/traefik-install.sh @@ -21,7 +21,7 @@ $STD apt-get install -y gpg $STD apt-get install -y apt-transport-https msg_ok "Installed Dependencies" -RELEASE=3.0.4 #$(curl -s https://api.github.com/repos/traefik/traefik/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') +RELEASE=$(curl -s https://api.github.com/repos/traefik/traefik/releases | grep -oP '"tag_name":\s*"v\K[\d.]+?(?=")' | sort -V | tail -n 1) msg_info "Installing Traefik v${RELEASE}" mkdir -p /etc/traefik/{conf.d,ssl} wget -q https://github.com/traefik/traefik/releases/download/v${RELEASE}/traefik_v${RELEASE}_linux_amd64.tar.gz From 5e561a1b789ccb0e708b4bf8a31de84a395d2c23 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 27 Jul 2024 06:55:30 -0400 Subject: [PATCH 11/14] Update traefik.sh tweak --- ct/traefik.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/traefik.sh b/ct/traefik.sh index 0da650d11..d86ac1438 100644 --- a/ct/traefik.sh +++ b/ct/traefik.sh @@ -55,7 +55,7 @@ function default_settings() { function update_script() { header_info if [[ ! -f /etc/systemd/system/traefik.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi -RELEASE=3.0.4 #$(curl -s https://api.github.com/repos/traefik/traefik/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') +RELEASE=$(curl -s https://api.github.com/repos/traefik/traefik/releases | grep -oP '"tag_name":\s*"v\K[\d.]+?(?=")' | sort -V | tail -n 1) msg_info "Updating $APP LXC" if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then wget -q https://github.com/traefik/traefik/releases/download/v${RELEASE}/traefik_v${RELEASE}_linux_amd64.tar.gz From fabbe5925bd3ab05c00a76f41f2919f3a98ae25f Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 27 Jul 2024 07:07:09 -0400 Subject: [PATCH 12/14] Update README.md tweak --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9401c778f..9a82aa967 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@

Proxmox VE Helper-Scripts

- Website | + Website | Contribute | Guides | Changelog | @@ -15,6 +15,8 @@ --- +Be cautious of copycat or coat-tailing sites that exploit the project's popularity with potentially malicious intent. Please only trust information from https://Helper-Scripts.com/ or https://tteck.github.io/Proxmox/. + These scripts empower users to create a Linux container or virtual machine interactively, providing choices for both simple and advanced configurations. The basic setup adheres to default settings, while the advanced setup gives users the ability to customize these defaults. Options are displayed to users in a dialog box format. Once the user makes their selections, the script collects and validates their input to generate the final configuration for the container or virtual machine. From b108b6e373f059ba8925aa55f5b0f9caf23b2f7f Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 27 Jul 2024 12:48:42 -0400 Subject: [PATCH 13/14] Update update-lxcs.sh tweak --- misc/update-lxcs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/update-lxcs.sh b/misc/update-lxcs.sh index 9167186e9..1ad3b5cd9 100644 --- a/misc/update-lxcs.sh +++ b/misc/update-lxcs.sh @@ -101,7 +101,7 @@ for container in $(pct list | awk '{if(NR>1) print $1}'); do done wait header_info -echo -e "${GN}The process is complete, and the selected containers have been updated.${CL}\n" +echo -e "${GN}The process is complete, and the containers have been successfully updated.${CL}\n" if [ "${#containers_needing_reboot[@]}" -gt 0 ]; then echo -e "${RD}The following containers require a reboot:${CL}" for container_name in "${containers_needing_reboot[@]}"; do From 026b0f4105c709a0139b3aa285263203b7d1e923 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 27 Jul 2024 12:51:12 -0400 Subject: [PATCH 14/14] Update radarr.sh tweak --- ct/radarr.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ct/radarr.sh b/ct/radarr.sh index 69a75d628..8903135a9 100644 --- a/ct/radarr.sh +++ b/ct/radarr.sh @@ -55,10 +55,7 @@ function default_settings() { function update_script() { header_info if [[ ! -d /var/lib/radarr/ ]]; then msg_error "No ${APP} Installation Found!"; exit; fi -msg_info "Updating $APP LXC" -apt-get update &>/dev/null -apt-get -y upgrade &>/dev/null -msg_ok "Updated $APP LXC" +msg_error "There is currently no update path available." exit }