Skip to content

Instantly share code, notes, and snippets.

@corgan2222
Last active July 27, 2026 22:39
Show Gist options
  • Select an option

  • Save corgan2222/3206369f8741512ec93fdee74f1a6330 to your computer and use it in GitHub Desktop.

Select an option

Save corgan2222/3206369f8741512ec93fdee74f1a6330 to your computer and use it in GitHub Desktop.
Install Frigate 0.18.0-beta1
#!/usr/bin/env bash
# ---------------------------------------------------------------------------
# Install Frigate 0.18.0-beta1 via community-scripts (ProxmoxVE)
#
# Run on the PROXMOX HOST (not inside the container) as root:
# bash frigate-018-beta-en.sh
#
# What this script does:
# 1. downloads build.func, ct/frigate.sh and install/frigate-install.sh locally
# 2. sets the version in frigate-install.sh from v0.17.2 -> the desired version
# 3. rewires build.func to use the LOCAL (edited) install file instead of
# re-fetching it from GitHub/main
# 4. starts the normal ct/frigate.sh flow (container creation + install)
#
# Note: 0.18 is BETA and is NOT officially supported by community-scripts.
# The build is compiled from source (~30-60 min, heavy CPU/RAM usage).
# ---------------------------------------------------------------------------
set -euo pipefail
FRIGATE_VERSION="v0.18.0-beta1" # <-- change to a later tag if needed (e.g. v0.18.0-beta2 / v0.18.0)
WORKDIR="/root/frigate-custom"
BASE="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main"
mkdir -p "$WORKDIR"
cd "$WORKDIR"
echo ">> Downloading scripts to $WORKDIR ..."
curl -fsSL "$BASE/misc/build.func" -o build.func
curl -fsSL "$BASE/ct/frigate.sh" -o frigate.sh
curl -fsSL "$BASE/install/frigate-install.sh" -o frigate-install.sh
echo ">> Setting Frigate version to $FRIGATE_VERSION ..."
sed -i "s#\"tarball\" \"v0.17.2\"#\"tarball\" \"$FRIGATE_VERSION\"#" frigate-install.sh
echo " Check:"
grep -n 'fetch_and_deploy_gh_release "frigate"' frigate-install.sh
echo ">> Rewiring build.func to use the local install file ..."
sed -i "s#_install_script=\"\$(curl -fsSL \"https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/\${var_install}.sh\")\"#_install_script=\"\$(cat $WORKDIR/frigate-install.sh)\"#g" build.func
echo " replaced occurrences: $(grep -c "cat $WORKDIR/frigate-install.sh" build.func)"
echo ">> Making ct/frigate.sh source the local build.func ..."
sed -i "s#source <(curl -fsSL https://.*/misc/build.func)#source $WORKDIR/build.func#" frigate.sh
echo ">> Starting installer ..."
bash frigate.sh
#!/usr/bin/env bash
# ---------------------------------------------------------------------------
# Install Frigate 0.18.0-beta1 via community-scripts (ProxmoxVE) - Debug output
#
# Run on the PROXMOX HOST (not inside the container) as root:
# bash frigate-018-beta-en.sh
#
# What this script does:
# 1. downloads build.func, ct/frigate.sh and install/frigate-install.sh locally
# 2. sets the version in frigate-install.sh from v0.17.2 -> the desired version
# 3. rewires build.func to use the LOCAL (edited) install file instead of
# re-fetching it from GitHub/main
# 4. starts the normal ct/frigate.sh flow (container creation + install)
#
# Note: 0.18 is BETA and is NOT officially supported by community-scripts.
# The build is compiled from source (~30-60 min, heavy CPU/RAM usage).
# ---------------------------------------------------------------------------
set -euo pipefail
FRIGATE_VERSION="v0.18.0-beta1" # <-- change to a later tag if needed (e.g. v0.18.0-beta2 / v0.18.0)
WORKDIR="/root/frigate-custom"
BASE="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main"
mkdir -p "$WORKDIR"
cd "$WORKDIR"
echo ">> Downloading scripts to $WORKDIR ..."
curl -fsSL "$BASE/misc/build.func" -o build.func
curl -fsSL "$BASE/ct/frigate.sh" -o frigate.sh
curl -fsSL "$BASE/install/frigate-install.sh" -o frigate-install.sh
echo ">> Setting Frigate version to $FRIGATE_VERSION ..."
sed -i "s#\"tarball\" \"v0.17.2\"#\"tarball\" \"$FRIGATE_VERSION\"#" frigate-install.sh
echo " Check:"
grep -n 'fetch_and_deploy_gh_release "frigate"' frigate-install.sh
echo ">> Workaround: force IPv4 + timeouts for wget (broken IPv6 makes wget hang) ..."
sed -i "/^update_os$/a echo 'inet4_only = on' >> /etc/wgetrc; echo 'timeout = 30' >> /etc/wgetrc; echo 'tries = 3' >> /etc/wgetrc" frigate-install.sh
echo ">> Enable verbose output (live output instead of silent) ..."
sed -i '/FUNCTIONS_FILE_PATH/i export VERBOSE=yes' frigate-install.sh
echo ">> Skip HailoRT download (no Hailo hardware) ..."
sed -i 's@^\$STD bash /opt/frigate/docker/main/install_hailort.sh@true ## HailoRT skipped (no Hailo HW)@' frigate-install.sh
grep -n 'HailoRT skipped\|export VERBOSE=yes' frigate-install.sh
echo ">> Rewiring build.func to use the local install file ..."
sed -i "s#_install_script=\"\$(curl -fsSL \"https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/\${var_install}.sh\")\"#_install_script=\"\$(cat $WORKDIR/frigate-install.sh)\"#g" build.func
echo " replaced occurrences: $(grep -c "cat $WORKDIR/frigate-install.sh" build.func)"
echo ">> Making ct/frigate.sh source the local build.func ..."
sed -i "s#source <(curl -fsSL https://.*/misc/build.func)#source $WORKDIR/build.func#" frigate.sh
echo ">> Starting installer ..."
bash frigate.sh
#!/usr/bin/env bash
# ---------------------------------------------------------------------------
# Install Frigate 0.18.0-beta2 via community-scripts (ProxmoxVE) - Debug output
#
# Run on the PROXMOX HOST (not inside the container) as root:
# bash frigate-018-beta-en.sh
#
# What this script does:
# 1. downloads build.func, ct/frigate.sh and install/frigate-install.sh locally
# 2. sets the version in frigate-install.sh from v0.17.2 -> the desired version
# 3. rewires build.func to use the LOCAL (edited) install file instead of
# re-fetching it from GitHub/main
# 4. starts the normal ct/frigate.sh flow (container creation + install)
#
# Note: 0.18 is BETA and is NOT officially supported by community-scripts.
# The build is compiled from source (~30-60 min, heavy CPU/RAM usage).
# ---------------------------------------------------------------------------
set -euo pipefail
FRIGATE_VERSION="v0.18.0-beta2" # <-- change to a later tag if needed (e.g. v0.18.0-beta2 / v0.18.0)
WORKDIR="/root/frigate-custom"
BASE="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main"
mkdir -p "$WORKDIR"
cd "$WORKDIR"
echo ">> Downloading scripts to $WORKDIR ..."
curl -fsSL "$BASE/misc/build.func" -o build.func
curl -fsSL "$BASE/ct/frigate.sh" -o frigate.sh
curl -fsSL "$BASE/install/frigate-install.sh" -o frigate-install.sh
echo ">> Setting Frigate version to $FRIGATE_VERSION ..."
sed -i "s#\"tarball\" \"v0.17.2\"#\"tarball\" \"$FRIGATE_VERSION\"#" frigate-install.sh
echo " Check:"
grep -n 'fetch_and_deploy_gh_release "frigate"' frigate-install.sh
echo ">> Workaround: force IPv4 + timeouts for wget (broken IPv6 makes wget hang) ..."
sed -i "/^update_os$/a echo 'inet4_only = on' >> /etc/wgetrc; echo 'timeout = 30' >> /etc/wgetrc; echo 'tries = 3' >> /etc/wgetrc" frigate-install.sh
echo ">> Enable verbose output (live output instead of silent) ..."
sed -i '/FUNCTIONS_FILE_PATH/i export VERBOSE=yes' frigate-install.sh
echo ">> Skip HailoRT download (no Hailo hardware) ..."
sed -i 's@^\$STD bash /opt/frigate/docker/main/install_hailort.sh@true ## HailoRT skipped (no Hailo HW)@' frigate-install.sh
grep -n 'HailoRT skipped\|export VERBOSE=yes' frigate-install.sh
echo ">> Rewiring build.func to use the local install file ..."
sed -i "s#_install_script=\"\$(curl -fsSL \"https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/\${var_install}.sh\")\"#_install_script=\"\$(cat $WORKDIR/frigate-install.sh)\"#g" build.func
echo " replaced occurrences: $(grep -c "cat $WORKDIR/frigate-install.sh" build.func)"
echo ">> Making ct/frigate.sh source the local build.func ..."
sed -i "s#source <(curl -fsSL https://.*/misc/build.func)#source $WORKDIR/build.func#" frigate.sh
echo ">> Starting installer ..."
bash frigate.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment