2025-03-24 21:05:19 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2026-01-06 13:28:12 +01:00
|
|
|
# Copyright (c) 2021-2026 community-scripts ORG
|
2025-03-24 21:05:19 +01:00
|
|
|
# Author: kkroboth
|
2025-03-27 10:20:57 +01:00
|
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
2025-03-24 21:05:19 +01:00
|
|
|
# Source: https://fileflows.com/
|
|
|
|
|
|
2025-04-01 10:25:46 +02:00
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
2025-03-24 21:05:19 +01:00
|
|
|
color
|
|
|
|
|
verb_ip6
|
|
|
|
|
catch_errors
|
|
|
|
|
setting_up_container
|
|
|
|
|
network_check
|
|
|
|
|
update_os
|
|
|
|
|
|
|
|
|
|
msg_info "Installing Dependencies"
|
2026-02-09 14:16:04 +01:00
|
|
|
$STD apt install -y \
|
2025-04-01 20:21:54 +02:00
|
|
|
ffmpeg \
|
2026-04-21 15:47:16 +02:00
|
|
|
pciutils \
|
2025-04-02 07:20:07 +02:00
|
|
|
imagemagick
|
2025-03-24 21:05:19 +01:00
|
|
|
msg_ok "Installed Dependencies"
|
|
|
|
|
|
2025-12-17 14:37:31 +01:00
|
|
|
setup_hwaccel
|
2025-03-24 21:05:19 +01:00
|
|
|
|
|
|
|
|
msg_info "Installing ASP.NET Core Runtime"
|
2026-02-09 14:16:04 +01:00
|
|
|
setup_deb822_repo \
|
|
|
|
|
"microsoft" \
|
|
|
|
|
"https://packages.microsoft.com/keys/microsoft-2025.asc" \
|
|
|
|
|
"https://packages.microsoft.com/debian/13/prod/" \
|
|
|
|
|
"trixie"
|
|
|
|
|
$STD apt install -y aspnetcore-runtime-8.0
|
2025-03-24 21:05:19 +01:00
|
|
|
msg_ok "Installed ASP.NET Core Runtime"
|
|
|
|
|
|
2026-02-09 14:16:04 +01:00
|
|
|
fetch_and_deploy_from_url "https://fileflows.com/downloads/zip" "/opt/fileflows"
|
|
|
|
|
|
2025-03-24 21:05:19 +01:00
|
|
|
$STD ln -svf /usr/bin/ffmpeg /usr/local/bin/ffmpeg
|
|
|
|
|
$STD ln -svf /usr/bin/ffprobe /usr/local/bin/ffprobe
|
2026-04-21 15:47:16 +02:00
|
|
|
$STD rm -rf /opt/fileflows/Server/runtimes/win-*
|
2026-03-28 23:27:07 +01:00
|
|
|
|
|
|
|
|
read -r -p "${TAB3}Do you want to install FileFlows Server or Node? (S/N): " install_server
|
|
|
|
|
|
|
|
|
|
if [[ "$install_server" =~ ^[Ss]$ ]]; then
|
|
|
|
|
msg_info "Installing FileFlows Server"
|
|
|
|
|
cd /opt/fileflows/Server
|
|
|
|
|
$STD dotnet FileFlows.Server.dll --systemd install --root true
|
|
|
|
|
systemctl enable -q --now fileflows
|
|
|
|
|
msg_ok "Installed FileFlows Server"
|
|
|
|
|
else
|
|
|
|
|
msg_info "Installing FileFlows Node"
|
|
|
|
|
cd /opt/fileflows/Node
|
|
|
|
|
$STD dotnet FileFlows.Node.dll
|
|
|
|
|
$STD dotnet FileFlows.Node.dll --systemd install --root true
|
|
|
|
|
systemctl enable -q --now fileflows-node
|
|
|
|
|
msg_ok "Installed FileFlows Node"
|
|
|
|
|
fi
|
2025-03-24 21:05:19 +01:00
|
|
|
|
|
|
|
|
motd_ssh
|
|
|
|
|
customize
|
2025-11-22 17:27:13 +01:00
|
|
|
cleanup_lxc
|