From 36ba0023296f99c6d3b61da15359064d77865736 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Thu, 22 Jan 2026 18:16:40 +0100 Subject: [PATCH 01/12] test --- install/jotty-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/jotty-install.sh b/install/jotty-install.sh index df98e70f9..fff981cac 100644 --- a/install/jotty-install.sh +++ b/install/jotty-install.sh @@ -17,7 +17,7 @@ NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs #fetch_and_deploy_gh_release "jotty" "fccview/jotty" "tarball" "latest" "/opt/jotty" mkdir -p /opt/jotty wget -q https://github.com/fccview/jotty/releases/download/develop/jotty-prebuild-develop.tar.gz -O /tmp/jotty.tar.gz -tar -xzf /tmp/jotty.tar.gz -C /opt/jotty --strip-components=1 +tar -xzf /tmp/jotty.tar.gz -C /opt/jotty msg_info "Setup jotty" cd /opt/jotty From ea78e8f0e8dfa5be974bad638deb5084ad8495d4 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Thu, 22 Jan 2026 18:17:02 +0100 Subject: [PATCH 02/12] test jotty --- install/jotty-install.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/install/jotty-install.sh b/install/jotty-install.sh index fff981cac..fa676597a 100644 --- a/install/jotty-install.sh +++ b/install/jotty-install.sh @@ -21,22 +21,22 @@ tar -xzf /tmp/jotty.tar.gz -C /opt/jotty msg_info "Setup jotty" cd /opt/jotty -unset NODE_OPTIONS -export NODE_OPTIONS="--max-old-space-size=3072" -# $STD yarn --frozen-lockfiled -# $STD yarn next telemetry disable -# $STD yarn build +# unset NODE_OPTIONS +# export NODE_OPTIONS="--max-old-space-size=3072" +# # $STD yarn --frozen-lockfiled +# # $STD yarn next telemetry disable +# # $STD yarn build -[ -d "public" ] && cp -r public .next/standalone/ -[ -d "howto" ] && cp -r howto .next/standalone/ -mkdir -p .next/standalone/.next -cp -r .next/static .next/standalone/.next/ +# [ -d "public" ] && cp -r public .next/standalone/ +# [ -d "howto" ] && cp -r howto .next/standalone/ +# mkdir -p .next/standalone/.next +# cp -r .next/static .next/standalone/.next/ -mv .next/standalone /tmp/jotty_standalone -rm -rf ./* .next .git .gitignore .yarn -mv /tmp/jotty_standalone/* . -mv /tmp/jotty_standalone/.[!.]* . 2>/dev/null || true -rm -rf /tmp/jotty_standalone +# mv .next/standalone /tmp/jotty_standalone +# rm -rf ./* .next .git .gitignore .yarn +# mv /tmp/jotty_standalone/* . +# mv /tmp/jotty_standalone/.[!.]* . 2>/dev/null || true +# rm -rf /tmp/jotty_standalone mkdir -p data/{users,checklists,notes} From 84b6afe5dc2555a4834183327a3c43723d5c01e4 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Thu, 22 Jan 2026 18:25:52 +0100 Subject: [PATCH 03/12] romm fixes --- install/romm-install.sh | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/install/romm-install.sh b/install/romm-install.sh index 983619eed..a3b9855e0 100644 --- a/install/romm-install.sh +++ b/install/romm-install.sh @@ -15,7 +15,7 @@ setting_up_container network_check update_os -msg_info "Installing dependencies" +msg_info "Installing Dependencies" $STD apt-get install -y \ acl \ build-essential \ @@ -43,9 +43,9 @@ $STD apt-get install -y \ p7zip-full \ tzdata \ nginx -msg_ok "Installed dependencies" +msg_ok "Installed Dependencies" -UV_VERSION="0.7.19" PYTHON_VERSION="3.13" setup_uv +PYTHON_VERSION="3.13" setup_uv NODE_VERSION="22" setup_nodejs setup_mariadb MARIADB_DB_NAME="romm" MARIADB_DB_USER="romm" setup_mariadb_db @@ -120,11 +120,9 @@ CONFIGEOF chmod 644 /var/lib/romm/config/config.yml msg_ok "Created configuration file" -msg_info "Installing RAHasher (RetroAchievements)" -fetch_and_deploy_gh_release "RetroAchievements" "RetroAchievements/RALibretro" "prebuild" "latest" "/opt/RALibretro" "RAHasher-x64-Linux-*.zip" +fetch_and_deploy_gh_release "RAHasher" "RetroAchievements/RALibretro" "prebuild" "latest" "/opt/RALibretro" "RAHasher-x64-Linux-*.zip" cp /opt/RALibretro/RAHasher /usr/bin/RAHasher chmod +x /usr/bin/RAHasher -msg_ok "Installed RAHasher" fetch_and_deploy_gh_release "romm" "rommapp/romm" @@ -166,23 +164,24 @@ EOF chmod 600 /opt/romm/.env msg_ok "Created environment file" -msg_info "Setup Romm backend" +msg_info "Setting up RomM Backend" cd /opt/romm export UV_CONCURRENT_DOWNLOADS=1 $STD uv sync --all-extras cd /opt/romm/backend $STD uv run alembic upgrade head -msg_ok "Installed backend" +msg_ok "Set up RomM Backend" -msg_info "Setup Romm frontend" +msg_info "Setting up RomM Frontend" cd /opt/romm/frontend $STD npm install $STD npm run build mkdir -p /opt/romm/frontend/dist/assets/romm ln -sfn /var/lib/romm/resources /opt/romm/frontend/dist/assets/romm/resources ln -sfn /var/lib/romm/assets /opt/romm/frontend/dist/assets/romm/assets -msg_ok "Setup Romm frontend" -msg_info "Configuring nginx" +msg_ok "Set up RomM Frontend" + +msg_info "Configuring Nginx" cat >/etc/nginx/sites-available/romm <<'EOF' upstream romm_backend { server 127.0.0.1:5000; @@ -250,9 +249,9 @@ ln -sf /etc/nginx/sites-available/romm /etc/nginx/sites-enabled/romm $STD nginx -t systemctl restart nginx systemctl enable -q nginx -msg_ok "Configured nginx" +msg_ok "Configured Nginx" -msg_info "Creating services" +msg_info "Creating Services" cat >/etc/systemd/system/romm-backend.service < Date: Thu, 22 Jan 2026 18:30:22 +0100 Subject: [PATCH 04/12] fixes --- install/romm-install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install/romm-install.sh b/install/romm-install.sh index a3b9855e0..cc95a84be 100644 --- a/install/romm-install.sh +++ b/install/romm-install.sh @@ -16,12 +16,10 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ +$STD apt install -y \ acl \ + git \ build-essential \ - gcc \ - g++ \ - make \ libssl-dev \ libffi-dev \ libmagic-dev \ From 8a80de71a3fc60b2154c036fa214f17851506920 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Thu, 22 Jan 2026 18:48:03 +0100 Subject: [PATCH 05/12] little bugfixes --- install/romm-install.sh | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/install/romm-install.sh b/install/romm-install.sh index cc95a84be..1af124cef 100644 --- a/install/romm-install.sh +++ b/install/romm-install.sh @@ -58,7 +58,7 @@ mkdir -p /opt/romm \ msg_ok "Created directories" msg_info "Creating configuration file" -cat >/var/lib/romm/config/config.yml <<'CONFIGEOF' +cat <<'EOF' >/var/lib/romm/config/config.yml # RomM Configuration File # Documentation: https://docs.romm.app/latest/Getting-Started/Configuration-File/ # Only uncomment the lines you want to use/modify @@ -114,7 +114,7 @@ cat >/var/lib/romm/config/config.yml <<'CONFIGEOF' # emulatorjs: # debug: false # cache_limit: null -CONFIGEOF +EOF chmod 644 /var/lib/romm/config/config.yml msg_ok "Created configuration file" @@ -130,7 +130,7 @@ systemctl restart redis-server systemctl enable -q --now redis-server AUTH_SECRET_KEY=$(openssl rand -hex 32) -cat >/opt/romm/.env </opt/romm/.env ROMM_BASE_PATH=/var/lib/romm ROMM_CONFIG_PATH=/var/lib/romm/config/config.yml WEB_CONCURRENCY=4 @@ -180,7 +180,7 @@ ln -sfn /var/lib/romm/assets /opt/romm/frontend/dist/assets/romm/assets msg_ok "Set up RomM Frontend" msg_info "Configuring Nginx" -cat >/etc/nginx/sites-available/romm <<'EOF' +cat <<'EOF' >/etc/nginx/sites-available/romm upstream romm_backend { server 127.0.0.1:5000; } @@ -244,13 +244,12 @@ EOF rm -f /etc/nginx/sites-enabled/default ln -sf /etc/nginx/sites-available/romm /etc/nginx/sites-enabled/romm -$STD nginx -t systemctl restart nginx -systemctl enable -q nginx +systemctl enable -q --now nginx msg_ok "Configured Nginx" msg_info "Creating Services" -cat >/etc/systemd/system/romm-backend.service </etc/systemd/system/romm-backend.service [Unit] Description=RomM Backend After=network.target mariadb.service redis-server.service @@ -269,7 +268,7 @@ RestartSec=5 WantedBy=multi-user.target EOF -cat >/etc/systemd/system/romm-worker.service </etc/systemd/system/romm-worker.service [Unit] Description=RomM RQ Worker After=network.target mariadb.service redis-server.service romm-backend.service @@ -288,7 +287,7 @@ RestartSec=5 WantedBy=multi-user.target EOF -cat >/etc/systemd/system/romm-scheduler.service </etc/systemd/system/romm-scheduler.service [Unit] Description=RomM RQ Scheduler After=network.target mariadb.service redis-server.service romm-backend.service @@ -309,7 +308,7 @@ RestartSec=5 WantedBy=multi-user.target EOF -cat >/etc/systemd/system/romm-watcher.service </etc/systemd/system/romm-watcher.service [Unit] Description=RomM Filesystem Watcher After=network.target romm-backend.service From bc1fb085848b4df5d16b15837a1c18e3005ae8e8 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Thu, 22 Jan 2026 18:57:35 +0100 Subject: [PATCH 06/12] test logo --- install/romm-install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install/romm-install.sh b/install/romm-install.sh index 1af124cef..73f2ada65 100644 --- a/install/romm-install.sh +++ b/install/romm-install.sh @@ -201,6 +201,14 @@ server { try_files $uri $uri/ /index.html; } + # Static assets + location /assets { + alias /opt/romm/frontend/dist/assets; + try_files $uri $uri/ =404; + expires 1y; + add_header Cache-Control "public, immutable"; + } + # EmulatorJS player - requires COOP/COEP headers for SharedArrayBuffer location ~ ^/rom/.*/ejs$ { add_header Cross-Origin-Embedder-Policy "require-corp"; From b672074d380072052db24ccce2360627bc3c03c0 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Thu, 22 Jan 2026 20:06:37 +0100 Subject: [PATCH 07/12] fix --- install/jotty-install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install/jotty-install.sh b/install/jotty-install.sh index fa676597a..ee224b5b6 100644 --- a/install/jotty-install.sh +++ b/install/jotty-install.sh @@ -15,11 +15,12 @@ update_os NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs #fetch_and_deploy_gh_release "jotty" "fccview/jotty" "tarball" "latest" "/opt/jotty" -mkdir -p /opt/jotty -wget -q https://github.com/fccview/jotty/releases/download/develop/jotty-prebuild-develop.tar.gz -O /tmp/jotty.tar.gz -tar -xzf /tmp/jotty.tar.gz -C /opt/jotty - msg_info "Setup jotty" +mkdir -p /opt/jotty +wget -q https://github.com/fccview/jotty/releases/download/develop/jotty-prebuild-develop.tar.gz -O /opt/jotty.tar.gz +cd /opt/jotty +tar -xzf jotty.tar.gz + cd /opt/jotty # unset NODE_OPTIONS # export NODE_OPTIONS="--max-old-space-size=3072" From 7bf43f007e3b44f99065dc5556559c7a597129d2 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Thu, 22 Jan 2026 20:10:03 +0100 Subject: [PATCH 08/12] path issue --- install/jotty-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/jotty-install.sh b/install/jotty-install.sh index ee224b5b6..a8ce9f634 100644 --- a/install/jotty-install.sh +++ b/install/jotty-install.sh @@ -18,7 +18,7 @@ NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs msg_info "Setup jotty" mkdir -p /opt/jotty wget -q https://github.com/fccview/jotty/releases/download/develop/jotty-prebuild-develop.tar.gz -O /opt/jotty.tar.gz -cd /opt/jotty +cd /opt tar -xzf jotty.tar.gz cd /opt/jotty From 7d5123bdd688fba4ebabc98e1d69b491a7adb472 Mon Sep 17 00:00:00 2001 From: tremor021 Date: Thu, 22 Jan 2026 22:20:06 +0100 Subject: [PATCH 09/12] add fetch_and_deploy_archive --- misc/tools.func | 113 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) diff --git a/misc/tools.func b/misc/tools.func index 260fb9a03..a86ff9fc6 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -5922,3 +5922,116 @@ EOF msg_ok "Docker setup completed" } + +# ------------------------------------------------------------------------------ +# Fetch and deploy archive from URL +# Downloads an archive (zip or tar.gz) from a URL and extracts it to a directory +# +# Usage: fetch_and_deploy_archive "url" "directory" +# url - URL to the archive (zip or tar.gz) +# directory - Destination path where the archive will be extracted +# +# Examples: +# fetch_and_deploy_archive "https://example.com/app.tar.gz" "/opt/myapp" +# fetch_and_deploy_archive "https://example.com/app.zip" "/opt/myapp" +# ------------------------------------------------------------------------------ +function fetch_and_deploy_archive() { + local url="$1" + local directory="$2" + + if [[ -z "$url" ]]; then + msg_error "URL parameter is required" + return 1 + fi + + if [[ -z "$directory" ]]; then + msg_error "Directory parameter is required" + return 1 + fi + + local filename="${url##*/}" + + local archive_type="zip" + if [[ "$filename" == *.tar.gz || "$filename" == *.tgz ]]; then + archive_type="tar" + fi + + msg_info "Downloading archive from $url" + + local tmpdir + tmpdir=$(mktemp -d) || { + msg_error "Failed to create temporary directory" + return 1 + } + + curl -fsSL -o "$tmpdir/$filename" "$url" || { + msg_error "Download failed: $url" + rm -rf "$tmpdir" + return 1 + } + + msg_info "Extracting archive to $directory" + + mkdir -p "$directory" + + if [[ "${CLEAN_INSTALL:-0}" == "1" ]]; then + rm -rf "${directory:?}/"* + fi + + local unpack_tmp + unpack_tmp=$(mktemp -d) + + if [[ "$archive_type" == "zip" ]]; then + ensure_dependencies unzip + unzip -q "$tmpdir/$filename" -d "$unpack_tmp" || { + msg_error "Failed to extract ZIP archive" + rm -rf "$tmpdir" "$unpack_tmp" + return 1 + } + elif [[ "$archive_type" == "tar" ]]; then + tar --no-same-owner -xf "$tmpdir/$filename" -C "$unpack_tmp" || { + msg_error "Failed to extract TAR archive" + rm -rf "$tmpdir" "$unpack_tmp" + return 1 + } + fi + + local top_entries + top_entries=$(find "$unpack_tmp" -mindepth 1 -maxdepth 1) + + if [[ "$(echo "$top_entries" | wc -l)" -eq 1 && -d "$top_entries" ]]; then + local inner_dir="$top_entries" + shopt -s dotglob nullglob + if compgen -G "$inner_dir/*" >/dev/null; then + cp -r "$inner_dir"/* "$directory/" || { + msg_error "Failed to copy contents from $inner_dir to $directory" + rm -rf "$tmpdir" "$unpack_tmp" + return 1 + } + else + msg_error "Inner directory is empty: $inner_dir" + rm -rf "$tmpdir" "$unpack_tmp" + return 1 + fi + shopt -u dotglob nullglob + else + shopt -s dotglob nullglob + if compgen -G "$unpack_tmp/*" >/dev/null; then + cp -r "$unpack_tmp"/* "$directory/" || { + msg_error "Failed to copy contents to $directory" + rm -rf "$tmpdir" "$unpack_tmp" + return 1 + } + else + msg_error "Unpacked archive is empty" + rm -rf "$tmpdir" "$unpack_tmp" + return 1 + fi + shopt -u dotglob nullglob + fi + + rm -rf "$tmpdir" "$unpack_tmp" + msg_ok "Successfully deployed archive to $directory" + return 0 +} + From 7cac87858f5be3fc94a7d4f54b65cc912fc6d0a1 Mon Sep 17 00:00:00 2001 From: tremor021 Date: Thu, 22 Jan 2026 22:29:53 +0100 Subject: [PATCH 10/12] Fileflows test --- ct/fileflows.sh | 74 ++++++++++++++++++++++++++++++++++++ install/fileflows-install.sh | 47 +++++++++++++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 ct/fileflows.sh create mode 100644 install/fileflows-install.sh diff --git a/ct/fileflows.sh b/ct/fileflows.sh new file mode 100644 index 000000000..03a0b5e0f --- /dev/null +++ b/ct/fileflows.sh @@ -0,0 +1,74 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) +# Copyright (c) 2021-2026 community-scripts ORG +# Author: kkroboth +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://fileflows.com/ + +APP="FileFlows" +var_tags="${var_tags:-media;automation}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-2048}" +var_disk="${var_disk:-8}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_unprivileged="${var_unprivileged:-1}" +var_gpu="${var_gpu:-yes}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/fileflows ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + if ! [[ $(dpkg -s jq 2>/dev/null) ]]; then + $STD apt-get update + $STD apt-get install -y jq + fi + + update_available=$(curl -fsSL -X 'GET' "http://localhost:19200/api/status/update-available" -H 'accept: application/json' | jq .UpdateAvailable) + if [[ "${update_available}" == "true" ]]; then + msg_info "Stopping Service" + systemctl stop fileflows + msg_info "Stopped Service" + + msg_info "Creating Backup" + backup_filename="/opt/${APP}_backup_$(date +%F).tar.gz" + tar -czf "$backup_filename" -C /opt/fileflows Data + msg_ok "Backup Created" + + msg_info "Updating $APP to latest version" + temp_file=$(mktemp) + curl -fsSL https://fileflows.com/downloads/zip -o "$temp_file" + $STD unzip -o -d /opt/fileflows "$temp_file" + rm -rf "$temp_file" + rm -rf "$backup_filename" + msg_ok "Updated $APP to latest version" + + msg_info "Starting Service" + systemctl start fileflows + msg_ok "Started Service" + msg_ok "Updated successfully!" + else + msg_ok "No update required. ${APP} is already at latest version" + fi + + exit +} + +start +build_container +description + +msg_ok "Completed successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW} Access it using the following URL:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:19200${CL}" diff --git a/install/fileflows-install.sh b/install/fileflows-install.sh new file mode 100644 index 000000000..0e04c881d --- /dev/null +++ b/install/fileflows-install.sh @@ -0,0 +1,47 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: kkroboth +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://fileflows.com/ + +# Import Functions und Setup +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 \ + ffmpeg \ + jq \ + imagemagick +msg_ok "Installed Dependencies" + +setup_hwaccel + +msg_info "Installing ASP.NET Core Runtime" +curl -fsSL https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -o packages-microsoft-prod.deb +$STD dpkg -i packages-microsoft-prod.deb +rm -rf packages-microsoft-prod.deb +$STD apt-get update +$STD apt-get install -y aspnetcore-runtime-8.0 +msg_ok "Installed ASP.NET Core Runtime" + +msg_info "Setup ${APPLICATION}" +$STD ln -svf /usr/bin/ffmpeg /usr/local/bin/ffmpeg +$STD ln -svf /usr/bin/ffprobe /usr/local/bin/ffprobe +temp_file=$(mktemp) +curl -fsSL https://fileflows.com/downloads/zip -o "$temp_file" +$STD unzip -d /opt/fileflows "$temp_file" +(cd /opt/fileflows/Server && dotnet FileFlows.Server.dll --systemd install --root true) +systemctl enable -q --now fileflows +rm -f "$temp_file" +msg_ok "Setup ${APPLICATION}" + +motd_ssh +customize +cleanup_lxc From fb99364f101e417bdda47952cbb5f548ca66effa Mon Sep 17 00:00:00 2001 From: tremor021 Date: Thu, 22 Jan 2026 22:33:53 +0100 Subject: [PATCH 11/12] update FileFlows --- ct/fileflows.sh | 2 +- install/fileflows-install.sh | 26 ++++++++++++-------------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/ct/fileflows.sh b/ct/fileflows.sh index 03a0b5e0f..45a03faa1 100644 --- a/ct/fileflows.sh +++ b/ct/fileflows.sh @@ -21,7 +21,7 @@ color catch_errors function update_script() { - header_info +header_info check_container_storage check_container_resources diff --git a/install/fileflows-install.sh b/install/fileflows-install.sh index 0e04c881d..81ecfd1ac 100644 --- a/install/fileflows-install.sh +++ b/install/fileflows-install.sh @@ -15,32 +15,30 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt-get install -y \ +$STD apt install -y \ ffmpeg \ - jq \ imagemagick msg_ok "Installed Dependencies" setup_hwaccel +setup_deb822_repo \ + "microsoft" \ + "https://packages.microsoft.com/keys/microsoft-2025.asc" \ + "https://packages.microsoft.com/debian/13/prod/" \ + "trixie" +fetch_and_deploy_archive "https://fileflows.com/downloads/zip" "/opt/fileflows" msg_info "Installing ASP.NET Core Runtime" -curl -fsSL https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -o packages-microsoft-prod.deb -$STD dpkg -i packages-microsoft-prod.deb -rm -rf packages-microsoft-prod.deb -$STD apt-get update -$STD apt-get install -y aspnetcore-runtime-8.0 +$STD apt install -y aspnetcore-runtime-8.0 msg_ok "Installed ASP.NET Core Runtime" -msg_info "Setup ${APPLICATION}" +msg_info "Setup FileFlows" $STD ln -svf /usr/bin/ffmpeg /usr/local/bin/ffmpeg $STD ln -svf /usr/bin/ffprobe /usr/local/bin/ffprobe -temp_file=$(mktemp) -curl -fsSL https://fileflows.com/downloads/zip -o "$temp_file" -$STD unzip -d /opt/fileflows "$temp_file" -(cd /opt/fileflows/Server && dotnet FileFlows.Server.dll --systemd install --root true) +cd /opt/fileflows/Server +$STD dotnet FileFlows.Server.dll --systemd install --root true systemctl enable -q --now fileflows -rm -f "$temp_file" -msg_ok "Setup ${APPLICATION}" +msg_ok "Setup FileFlows" motd_ssh customize From 3606a8d6d0bc27d8c2a0ce616080dcd18945e2b4 Mon Sep 17 00:00:00 2001 From: tremor021 Date: Thu, 22 Jan 2026 23:35:26 +0100 Subject: [PATCH 12/12] update FileFlows --- ct/fileflows.sh | 8 +------- install/fileflows-install.sh | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/ct/fileflows.sh b/ct/fileflows.sh index 45a03faa1..27cdfd6fc 100644 --- a/ct/fileflows.sh +++ b/ct/fileflows.sh @@ -45,13 +45,7 @@ header_info tar -czf "$backup_filename" -C /opt/fileflows Data msg_ok "Backup Created" - msg_info "Updating $APP to latest version" - temp_file=$(mktemp) - curl -fsSL https://fileflows.com/downloads/zip -o "$temp_file" - $STD unzip -o -d /opt/fileflows "$temp_file" - rm -rf "$temp_file" - rm -rf "$backup_filename" - msg_ok "Updated $APP to latest version" + fetch_and_deploy_archive "https://fileflows.com/downloads/zip" "/opt/fileflows" msg_info "Starting Service" systemctl start fileflows diff --git a/install/fileflows-install.sh b/install/fileflows-install.sh index 81ecfd1ac..a402560a5 100644 --- a/install/fileflows-install.sh +++ b/install/fileflows-install.sh @@ -32,7 +32,7 @@ msg_info "Installing ASP.NET Core Runtime" $STD apt install -y aspnetcore-runtime-8.0 msg_ok "Installed ASP.NET Core Runtime" -msg_info "Setup FileFlows" +msg_info "Setting up FileFlows" $STD ln -svf /usr/bin/ffmpeg /usr/local/bin/ffmpeg $STD ln -svf /usr/bin/ffprobe /usr/local/bin/ffprobe cd /opt/fileflows/Server