2024-03-30 08:15:03 -04:00
|
|
|
#!/usr/bin/env bash
|
2026-08-25 11:04:15 +02:00
|
|
|
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
|
|
|
|
|
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
|
2026-02-23 12:14:17 +01:00
|
|
|
# Copyright (c) 2021-2026 community-scripts ORG
|
|
|
|
|
# Authors: MickLesk (CanbiZ) | Co-Author: remz1337
|
2024-12-16 12:42:51 +01:00
|
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
2026-02-24 15:11:53 +01:00
|
|
|
# Source: https://frigate.video/ | Github: https://github.com/blakeblackshear/frigate
|
2024-03-30 08:15:03 -04:00
|
|
|
|
|
|
|
|
APP="Frigate"
|
2025-04-10 11:56:52 +02:00
|
|
|
var_tags="${var_tags:-nvr}"
|
2026-04-26 21:22:00 +02:00
|
|
|
var_cpu="${var_cpu:-8}"
|
2026-09-16 12:01:52 +02:00
|
|
|
var_ram="${var_ram:-6144}"
|
|
|
|
|
var_disk="${var_disk:-25}"
|
2025-04-10 11:56:52 +02:00
|
|
|
var_os="${var_os:-debian}"
|
2026-02-23 12:14:17 +01:00
|
|
|
var_version="${var_version:-12}"
|
2026-05-23 07:46:44 +10:00
|
|
|
var_arm64="${var_arm64:-no}"
|
2025-04-10 11:56:52 +02:00
|
|
|
var_unprivileged="${var_unprivileged:-0}"
|
2025-12-08 13:52:30 +01:00
|
|
|
var_gpu="${var_gpu:-yes}"
|
2024-12-16 12:42:51 +01:00
|
|
|
|
|
|
|
|
header_info "$APP"
|
2024-03-30 08:15:03 -04:00
|
|
|
variables
|
|
|
|
|
color
|
|
|
|
|
catch_errors
|
|
|
|
|
|
|
|
|
|
function update_script() {
|
2026-02-23 12:14:17 +01:00
|
|
|
header_info
|
|
|
|
|
check_container_storage
|
|
|
|
|
check_container_resources
|
|
|
|
|
if [[ ! -f /etc/systemd/system/frigate.service ]]; then
|
|
|
|
|
msg_error "No ${APP} Installation Found!"
|
|
|
|
|
exit
|
|
|
|
|
fi
|
|
|
|
|
msg_error "To update Frigate, create a new container and transfer your configuration."
|
2024-12-16 12:42:51 +01:00
|
|
|
exit
|
2024-03-30 08:15:03 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
start
|
|
|
|
|
build_container
|
|
|
|
|
description
|
|
|
|
|
|
2026-01-06 22:57:40 +01:00
|
|
|
msg_ok "Completed successfully!\n"
|
2024-12-16 12:42:51 +01:00
|
|
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
2026-06-03 11:03:13 +02:00
|
|
|
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
|
|
|
|
|
echo -e "${GATEWAY}${BGN}http://${IP}:5000${CL}"
|