From 015e8f43938084a334fc01e52466263bbac3c6ba Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 1 Oct 2024 12:03:18 -0400 Subject: [PATCH 01/18] Update spoolman-install.sh fix install --- install/spoolman-install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install/spoolman-install.sh b/install/spoolman-install.sh index d4d69da34..d85e540d8 100644 --- a/install/spoolman-install.sh +++ b/install/spoolman-install.sh @@ -36,11 +36,10 @@ $STD apt-get install -y \ msg_ok "Installed Python3" msg_info "Installing Spoolman" -cd /opt RELEASE=$(wget -q https://github.com/Donkie/Spoolman/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) cd /opt wget -q https://github.com/Donkie/Spoolman/releases/download/$RELEASE/spoolman.zip -unzip -q spoolman.zip -d spoolman +unzip -q spoolman.zip rm -rf spoolman.zip cd spoolman $STD pip3 install -r requirements.txt From 9a17e03a38afbce588b130ceb81b4e0e61d5dafd Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 1 Oct 2024 12:08:50 -0400 Subject: [PATCH 02/18] Update spoolman.sh fix upgrade --- ct/spoolman.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/spoolman.sh b/ct/spoolman.sh index 464ced307..d66628acc 100644 --- a/ct/spoolman.sh +++ b/ct/spoolman.sh @@ -72,7 +72,7 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v rm -rf spoolman_bak mv spoolman spoolman_bak wget -q https://github.com/Donkie/Spoolman/releases/download/${RELEASE}/spoolman.zip - unzip -q spoolman.zip -d spoolman + unzip -q spoolman.zip cd spoolman pip3 install -r requirements.txt >/dev/null 2>&1 wget -q https://raw.githubusercontent.com/Donkie/Spoolman/master/.env.example -O .env From 87a8d9c2d81744ef9b426eb0c2e8fe9732bcc326 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 1 Oct 2024 12:15:09 -0400 Subject: [PATCH 03/18] Update whoogle.sh fixes https://github.com/tteck/Proxmox/issues/3810 --- ct/whoogle.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ct/whoogle.sh b/ct/whoogle.sh index 5fa40ba2a..92363c828 100644 --- a/ct/whoogle.sh +++ b/ct/whoogle.sh @@ -57,6 +57,7 @@ header_info if [[ ! -f /usr/local/bin/whoogle-search ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating ${APP} LXC" pip3 install whoogle-search --upgrade &>/dev/null +systemctl restart whoogle.service msg_ok "Updated Successfully" exit } From f2fe3612249d020737975b023e53b03d1466e718 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 2 Oct 2024 03:58:27 -0400 Subject: [PATCH 04/18] remove k0s scripts --- ct/k0s.sh | 69 ------------------------------------------ install/k0s-install.sh | 43 -------------------------- 2 files changed, 112 deletions(-) delete mode 100644 ct/k0s.sh delete mode 100644 install/k0s-install.sh diff --git a/ct/k0s.sh b/ct/k0s.sh deleted file mode 100644 index 3b62bfc69..000000000 --- a/ct/k0s.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/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) -# License: MIT -# https://github.com/tteck/Proxmox/raw/main/LICENSE - -function header_info { -clear -cat <<"EOF" - __ ____ __ __ __ __ - / /__/ __ \_____ / //_/_ __/ /_ ___ _________ ___ / /____ _____ - / //_/ / / / ___/ / ,< / / / / __ \/ _ \/ ___/ __ \/ _ \/ __/ _ \/ ___/ - / ,< / /_/ (__ ) / /| / /_/ / /_/ / __/ / / / / / __/ /_/ __(__ ) -/_/|_|\____/____/ /_/ |_\__,_/_.___/\___/_/ /_/ /_/\___/\__/\___/____/ - -EOF -} -header_info -echo -e "Loading..." -APP="k0s" -var_disk="4" -var_cpu="2" -var_ram="2048" -var_os="debian" -var_version="11" -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/k0s/k0s.yaml ]]; 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 Successfully" -exit -} - -start -build_container -description - -msg_ok "Completed Successfully!\n" diff --git a/install/k0s-install.sh b/install/k0s-install.sh deleted file mode 100644 index 8ad44b52e..000000000 --- a/install/k0s-install.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2024 tteck -# Author: tteck (tteckster) -# 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 curl -$STD apt-get install -y sudo -$STD apt-get install -y mc -$STD apt-get install -y git -msg_ok "Installed Dependencies" - -msg_info "Installing k0s Kubernetes" -$STD bash <(curl -sSLf https://get.k0s.sh) -$STD k0s install controller --single -$STD k0s start -mkdir -p /etc/k0s -k0s config create > /etc/k0s/k0s.yaml -msg_ok "Installed k0s Kubernetes" - -read -r -p "Would you like to add Helm Package Manager? " prompt -if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then -msg_info "Installing Helm" -$STD bash <(curl -sSLf https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3) -msg_ok "Installed Helm" -fi -motd_ssh -customize - -msg_info "Cleaning up" -$STD apt-get -y autoremove -$STD apt-get -y autoclean -msg_ok "Cleaned" From f2937febe69b2bad8b3a14eb84aa562a8f14cc6a Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 2 Oct 2024 22:34:56 -0400 Subject: [PATCH 05/18] Update homeassistant-core-install.sh - Breaking Change - Home Assistant has transitioned to using `uv` for managing the virtual environment and installing additional modules. - No upgrade to 2024.10.0 from old versions. Please create a new LXC. - Fixes https://github.com/tteck/Proxmox/issues/3817 --- install/homeassistant-core-install.sh | 28 +++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/install/homeassistant-core-install.sh b/install/homeassistant-core-install.sh index abaee9001..299c654c6 100644 --- a/install/homeassistant-core-install.sh +++ b/install/homeassistant-core-install.sh @@ -14,21 +14,28 @@ network_check update_os msg_info "Installing Dependencies (Patience)" -$STD apt-get install -y {git,curl,sudo,mc,bluez,libffi-dev,libssl-dev,libjpeg-dev,zlib1g-dev,autoconf,build-essential,libopenjp2-7,libturbojpeg0-dev,ffmpeg,liblapack3,liblapack-dev,dbus-broker,libpcap-dev,libavdevice-dev,libavformat-dev,libavcodec-dev,libavutil-dev,libavfilter-dev,libmariadb-dev-compat,libatlas-base-dev,python3-pip,python3.12-venv} +$STD apt-get install -y {git,curl,sudo,mc,bluez,libffi-dev,libssl-dev,libjpeg-dev,zlib1g-dev,autoconf,build-essential,libopenjp2-7,libturbojpeg0-dev,ffmpeg,liblapack3,liblapack-dev,dbus-broker,libpcap-dev,libavdevice-dev,libavformat-dev,libavcodec-dev,libavutil-dev,libavfilter-dev,libmariadb-dev-compat,libatlas-base-dev,python3.12-dev} msg_ok "Installed Dependencies" -msg_info "Installing Home Assistant-Core" +msg_info "Installing UV" +set +u +curl -LsSf https://astral.sh/uv/install.sh | sh -s -- -q +export PATH="$HOME/.cargo/bin:$PATH" +source ~/.bashrc +set -u +msg_ok "Installed UV" + +msg_info "Setting up Home Assistant-Core environment" mkdir /srv/homeassistant cd /srv/homeassistant -python3 -m venv . +uv venv . &>/dev/null source bin/activate -$STD pip install webrtcvad -$STD python3 -m pip install wheel -$STD pip install homeassistant -$STD pip install mysqlclient -$STD pip install psycopg2-binary +msg_ok "Created virtual environment with UV" + +msg_info "Installing Home Assistant-Core and packages" +$STD uv pip install webrtcvad wheel homeassistant mysqlclient psycopg2-binary isal mkdir -p /root/.homeassistant -msg_ok "Installed Home Assistant-Core" +msg_ok "Installed Home Assistant-Core and required packages" msg_info "Creating Service" cat </etc/systemd/system/homeassistant.service @@ -38,7 +45,8 @@ After=network-online.target [Service] Type=simple WorkingDirectory=/root/.homeassistant -ExecStart=/srv/homeassistant/bin/hass -c "/root/.homeassistant" +Environment="PATH=/srv/homeassistant/bin:/usr/local/bin:/usr/bin:/bin:$HOME/.cargo/bin" +ExecStart=/srv/homeassistant/bin/python3 -m homeassistant --config /root/.homeassistant Restart=always RestartForceExitStatus=100 [Install] From 6191d8e7921ad30df4c8ae1999cc31b89422d32e Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 2 Oct 2024 22:39:04 -0400 Subject: [PATCH 06/18] Update homeassistant-core.sh - Breaking Change - Home Assistant has transitioned to using `uv` for module updates. - No upgrade to 2024.10.0 from old versions. Please create a new LXC. --- ct/homeassistant-core.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/homeassistant-core.sh b/ct/homeassistant-core.sh index 01c1c36f2..96f26a856 100644 --- a/ct/homeassistant-core.sh +++ b/ct/homeassistant-core.sh @@ -85,7 +85,7 @@ function update_script() { msg_info "Updating Home Assistant" source /srv/homeassistant/bin/activate - pip install ${BR}--upgrade homeassistant &>/dev/null + uv pip install ${BR}--upgrade homeassistant &>/dev/null msg_ok "Updated Home Assistant" msg_info "Starting Home Assistant" From f2966ced7f457fd506f865f7f5b70ea12c4b0049 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 3 Oct 2024 06:16:12 -0400 Subject: [PATCH 07/18] Update homeassistant-core-install.sh Code refactor --- install/homeassistant-core-install.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/install/homeassistant-core-install.sh b/install/homeassistant-core-install.sh index 299c654c6..e66e66c14 100644 --- a/install/homeassistant-core-install.sh +++ b/install/homeassistant-core-install.sh @@ -14,15 +14,11 @@ network_check update_os msg_info "Installing Dependencies (Patience)" -$STD apt-get install -y {git,curl,sudo,mc,bluez,libffi-dev,libssl-dev,libjpeg-dev,zlib1g-dev,autoconf,build-essential,libopenjp2-7,libturbojpeg0-dev,ffmpeg,liblapack3,liblapack-dev,dbus-broker,libpcap-dev,libavdevice-dev,libavformat-dev,libavcodec-dev,libavutil-dev,libavfilter-dev,libmariadb-dev-compat,libatlas-base-dev,python3.12-dev} +$STD apt-get install -y git curl sudo mc bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libturbojpeg0-dev ffmpeg liblapack3 liblapack-dev dbus-broker libpcap-dev libavdevice-dev libavformat-dev libavcodec-dev libavutil-dev libavfilter-dev libmariadb-dev-compat libatlas-base-dev pip python3.12-dev msg_ok "Installed Dependencies" msg_info "Installing UV" -set +u -curl -LsSf https://astral.sh/uv/install.sh | sh -s -- -q -export PATH="$HOME/.cargo/bin:$PATH" -source ~/.bashrc -set -u +$STD pip install uv msg_ok "Installed UV" msg_info "Setting up Home Assistant-Core environment" @@ -45,7 +41,7 @@ After=network-online.target [Service] Type=simple WorkingDirectory=/root/.homeassistant -Environment="PATH=/srv/homeassistant/bin:/usr/local/bin:/usr/bin:/bin:$HOME/.cargo/bin" +Environment="PATH=/srv/homeassistant/bin:/usr/local/bin:/usr/bin:/usr/local/bin/uv" ExecStart=/srv/homeassistant/bin/python3 -m homeassistant --config /root/.homeassistant Restart=always RestartForceExitStatus=100 From 9aec831f92441028ed4afe61a911e23ab50bcccf Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 3 Oct 2024 06:49:47 -0400 Subject: [PATCH 08/18] Update CHANGELOG.md --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1595e8a20..54ded381c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,15 @@ Be cautious of copycat or coat-tailing sites that exploit the project's populari > [!NOTE] 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-10-03 + +### Changed + +- **Home Assistant Core LXC** [(Commit)](https://github.com/tteck/Proxmox/commit/f2937febe69b2bad8b3a14eb84aa562a8f14cc6a) [(Commit)](https://github.com/tteck/Proxmox/commit/f2966ced7f457fd506f865f7f5b70ea12c4b0049) + - Refactor Code + - Breaking Change + - Home Assistant has transitioned to using `uv` for managing the virtual environment and installing additional modules. + ## 2024-09-16 ### Changed From bb6759aae814bcb761274e8bb8314ae3f8758065 Mon Sep 17 00:00:00 2001 From: Max Slotov Date: Thu, 3 Oct 2024 19:18:56 +0300 Subject: [PATCH 09/18] Fix Nginx Proxy Manager logrotate user (#3818) Logs are not rotated and services freeze/die because disk is full. This happens because `npm` user/group doesn't exist and `logrotate.service` can't start. --- ct/nginxproxymanager.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ct/nginxproxymanager.sh b/ct/nginxproxymanager.sh index 688038a75..e609e78f1 100644 --- a/ct/nginxproxymanager.sh +++ b/ct/nginxproxymanager.sh @@ -168,6 +168,7 @@ EOF msg_info "Starting Services" sed -i 's/user npm/user root/g; s/^pid/#pid/g' /usr/local/openresty/nginx/conf/nginx.conf + sed -i 's/su npm npm/su root root/g' /etc/logrotate.d/nginx-proxy-manager sed -i 's/include-system-site-packages = false/include-system-site-packages = true/g' /opt/certbot/pyvenv.cfg systemctl enable -q --now openresty systemctl enable -q --now npm From 8335fbd3d536120c75e61da62dbe0640da5c9c0a Mon Sep 17 00:00:00 2001 From: Elad Bar <3207137+elad-bar@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:28:13 +0300 Subject: [PATCH 10/18] Restart traefik after update (#3831) Fixes #3830 --- ct/traefik.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ct/traefik.sh b/ct/traefik.sh index d86ac1438..f711cb6a4 100644 --- a/ct/traefik.sh +++ b/ct/traefik.sh @@ -62,6 +62,7 @@ if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP} tar -C /tmp -xzf traefik*.tar.gz mv /tmp/traefik /usr/bin/ rm -rf traefik*.tar.gz + systemctl restart traefik.service msg_ok "Updated $APP LXC" else msg_ok "No update required. ${APP} is already at ${RELEASE}" From 71107fedc46299a94ad0080dbcbf6dce3be0ca15 Mon Sep 17 00:00:00 2001 From: Elad Bar <3207137+elad-bar@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:40:00 +0300 Subject: [PATCH 11/18] Update keycloak - Fixes #3833 (#3834) --- ct/keycloak.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/ct/keycloak.sh b/ct/keycloak.sh index 638273133..a695df1c4 100644 --- a/ct/keycloak.sh +++ b/ct/keycloak.sh @@ -57,8 +57,32 @@ function update_script() { header_info if [[ ! -f /etc/systemd/system/keycloak.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi msg_info "Updating ${APP} LXC" + +msg_info "Updating packages" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null + +RELEASE=$(curl -s https://api.github.com/repos/keycloak/keycloak/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') +msg_info "Downloading Keycloak v$RELEASE" +cd /opt +wget -q https://github.com/keycloak/keycloak/releases/download/$RELEASE/keycloak-$RELEASE.tar.gz +$STD tar -xvf keycloak-$RELEASE.tar.gz + +msg_info "Merging configuration files" +cp -r keycloak/conf keycloak-$RELEASE +cp -r keycloak/providers keycloak-$RELEASE +cp -r keycloak/themes keycloak-$RELEASE + +msg_info "Updating Keycloak" +mv keycloak keycloak.old +mv keycloak-$RELEASE keycloak + +msg_info "Delete temporary installation files" +rm keycloak-$RELEASE.tar.gz +rm -rf keycloak.old + +msg_info "Restating Keycloak" +systemctl restart keycloak msg_ok "Updated Successfully" exit } From 05062bab40534773bf50b7698cf62f682796c801 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 4 Oct 2024 17:40:13 -0400 Subject: [PATCH 12/18] Update spoolman-install.sh fixes https://github.com/tteck/Proxmox/issues/3840 --- install/spoolman-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/spoolman-install.sh b/install/spoolman-install.sh index d85e540d8..79465dfbf 100644 --- a/install/spoolman-install.sh +++ b/install/spoolman-install.sh @@ -39,7 +39,7 @@ msg_info "Installing Spoolman" RELEASE=$(wget -q https://github.com/Donkie/Spoolman/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) cd /opt wget -q https://github.com/Donkie/Spoolman/releases/download/$RELEASE/spoolman.zip -unzip -q spoolman.zip +unzip -q spoolman.zip -d spoolman rm -rf spoolman.zip cd spoolman $STD pip3 install -r requirements.txt From 6bb46a53656029f0f3c435fc8a6268deb00ace79 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 4 Oct 2024 17:49:59 -0400 Subject: [PATCH 13/18] Update spoolman.sh revert https://github.com/tteck/Proxmox/commit/9a17e03a38afbce588b130ceb81b4e0e61d5dafd --- ct/spoolman.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/spoolman.sh b/ct/spoolman.sh index d66628acc..53bb97a8e 100644 --- a/ct/spoolman.sh +++ b/ct/spoolman.sh @@ -72,7 +72,7 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v rm -rf spoolman_bak mv spoolman spoolman_bak wget -q https://github.com/Donkie/Spoolman/releases/download/${RELEASE}/spoolman.zip - unzip -q spoolman.zip + unzip -q spoolman.zip -d spoolman cd spoolman pip3 install -r requirements.txt >/dev/null 2>&1 wget -q https://raw.githubusercontent.com/Donkie/Spoolman/master/.env.example -O .env From 97d48dd4b75a8af25d9d9eb498cd014f2054e2df Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 4 Oct 2024 18:51:35 -0400 Subject: [PATCH 14/18] Update nginxproxymanager-install.sh fixes https://github.com/tteck/Proxmox/issues/3841 --- install/nginxproxymanager-install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install/nginxproxymanager-install.sh b/install/nginxproxymanager-install.sh index 4314e293c..1ec234aa8 100644 --- a/install/nginxproxymanager-install.sh +++ b/install/nginxproxymanager-install.sh @@ -37,9 +37,8 @@ $STD apt-get install -y \ python3-pip \ python3-venv \ python3-cffi \ - python3-certbot \ python3-certbot-dns-cloudflare -$STD pip3 install certbot-dns-multi +$STD pip3 install certbot certbot-dns-multi $STD python3 -m venv /opt/certbot/ rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED msg_ok "Installed Python Dependencies" From 542a8a619bf9c20afb77ce208397b22f7934f17f Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 4 Oct 2024 19:59:20 -0400 Subject: [PATCH 15/18] Update nginxproxymanager-install.sh tweak --- install/nginxproxymanager-install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install/nginxproxymanager-install.sh b/install/nginxproxymanager-install.sh index 1ec234aa8..fcb14bf37 100644 --- a/install/nginxproxymanager-install.sh +++ b/install/nginxproxymanager-install.sh @@ -36,8 +36,7 @@ $STD apt-get install -y \ python3-dev \ python3-pip \ python3-venv \ - python3-cffi \ - python3-certbot-dns-cloudflare + python3-cffi $STD pip3 install certbot certbot-dns-multi $STD python3 -m venv /opt/certbot/ rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED From 72b3876fee50ed0a77f937e712dc71569def18f4 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 4 Oct 2024 20:53:22 -0400 Subject: [PATCH 16/18] Update nginxproxymanager-install.sh add symlink --- install/nginxproxymanager-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/nginxproxymanager-install.sh b/install/nginxproxymanager-install.sh index fcb14bf37..6c1c5d637 100644 --- a/install/nginxproxymanager-install.sh +++ b/install/nginxproxymanager-install.sh @@ -39,6 +39,7 @@ $STD apt-get install -y \ python3-cffi $STD pip3 install certbot certbot-dns-multi $STD python3 -m venv /opt/certbot/ +ln -s /usr/local/bin/certbot /usr/bin/certbot rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED msg_ok "Installed Python Dependencies" From 6f98a656926dc5798ec7b0a3980464e8174ad642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20B=C3=A9dard-Couture?= Date: Sun, 6 Oct 2024 14:37:01 -0400 Subject: [PATCH 17/18] Fix the nginx logs by keeping the process output to stdout instead of pushing directly into log file (#3851) --- install/frigate-install.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/install/frigate-install.sh b/install/frigate-install.sh index 16887b2bb..16dfd0ca3 100644 --- a/install/frigate-install.sh +++ b/install/frigate-install.sh @@ -171,8 +171,6 @@ msg_ok "Installed Coral Object Detection Model" msg_info "Building Nginx with Custom Modules" $STD /opt/frigate/docker/main/build_nginx.sh sed -e '/s6-notifyoncheck/ s/^#*/#/' -i /opt/frigate/docker/main/rootfs/etc/s6-overlay/s6-rc.d/nginx/run -sed -i 's/error_log \/dev\/stdout warn\;/error_log \/dev\/shm\/logs\/nginx\/current warn\;/' /usr/local/nginx/conf/nginx.conf -sed -i 's/access_log \/dev\/stdout main\;/access_log \/dev\/shm\/logs\/nginx\/current main\;/' /usr/local/nginx/conf/nginx.conf ln -sf /usr/local/nginx/sbin/nginx /usr/local/bin/nginx msg_ok "Built Nginx" From 255456008209b9276fa4989c5dca64e6bff3755c Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 6 Oct 2024 20:50:58 -0400 Subject: [PATCH 18/18] Update paperless-ngx-install.sh test --- install/paperless-ngx-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/paperless-ngx-install.sh b/install/paperless-ngx-install.sh index 7edabf2bd..a3a7d97f3 100644 --- a/install/paperless-ngx-install.sh +++ b/install/paperless-ngx-install.sh @@ -64,7 +64,7 @@ $STD apt-get install -y --no-install-recommends \ msg_ok "Installed OCR Dependencies" msg_info "Installing JBIG2" -$STD git clone https://github.com/agl/jbig2enc /opt/jbig2enc +$STD git clone https://github.com/ie13/jbig2enc /opt/jbig2enc cd /opt/jbig2enc $STD bash ./autogen.sh $STD bash ./configure