
commit 3aed8610af1d540864005b75e15dd731b4e17517 Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sun Mar 16 12:49:15 2025 -0400 docs: update comment commit a23ffe62c6c89fe0fae6c2660589c87ea0355b81 Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sun Mar 16 12:47:00 2025 -0400 chore: remove test file commit 1f589e64d04eb816cd1e2d472f4ba92cc2649da7 Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sun Mar 16 12:46:28 2025 -0400 chore: remove perm fixes commit c4421b80e81e8608cc2d1020e79e3649a0402d0b Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sun Mar 16 11:20:18 2025 -0400 fix: read input correctly commit 2b5e083c6070e6617c08dbf6d2b832be246b5d59 Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sun Mar 16 10:48:05 2025 -0400 test: do not change user groups for HW commit 9edc87de747b3b16a91ac5420d5aacb8276b795d Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sun Mar 16 10:46:23 2025 -0400 chore: more nits commit 8dcf55fc28023666a664b5abbd3f3024bf3d9797 Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sun Mar 16 10:37:40 2025 -0400 chore: ln ffmpeg commit e21430cee818cc5d7c0cc6f1b5421de6cca89688 Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sat Mar 15 11:49:16 2025 -0400 test: video file commit b32605fd3cfd5d07e0c5e30d8091753f024bb99e Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sat Mar 15 11:42:42 2025 -0400 test: video file commit 02b5743ceeb91656f9d7f088325e999d5bf69e88 Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sat Mar 15 11:41:13 2025 -0400 Revert "test: remove non-free driver" This reverts commit 8b8e70211b75ce4b2e7a4300a074925a3795ed16. commit 8b8e70211b75ce4b2e7a4300a074925a3795ed16 Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sat Mar 15 11:33:23 2025 -0400 test: remove non-free driver commit 5d2e1ad7b41b81e0a2030382a054e0de83ffb818 Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sat Mar 15 11:23:04 2025 -0400 test: update my repo url commit 8564a495af796c5d456aeba0d504f2ccd426adc8 Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sat Mar 15 11:08:34 2025 -0400 test: Remove ffmpeg custom install commit 9641bd85b2294f0ab97e2c153a781079d1638ec2 Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sat Mar 15 11:04:57 2025 -0400 test: use my repo for testing script commit 4dd1c10c6a9385bf67c22c460e57bae4dd8a4300 Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sat Mar 15 11:04:03 2025 -0400 Reapply "chore: test my branch" This reverts commit 7e7c0c157cc308ae0f8c637f7f198728275ae73e. commit bdc08c48245447fa7d77df66d8cabd172e2e8ab7 Author: Kyle Kroboth <kroboth.k@gmail.com> Date: Sat Mar 15 11:04:03 2025 -0400 Reapply "Reapply "chore: change update url to my repo"" This reverts commit f05ba8a8105efff09c368cc7b700f435d23f3fed.
74 lines
2.0 KiB
Bash
74 lines
2.0 KiB
Bash
#!/usr/bin/env bash
|
|
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
|
# Copyright (c) 2021-2025 community-scripts ORG
|
|
# Author: kkroboth
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
|
# Source: https://fileflows.com/
|
|
|
|
APP="FileFlows"
|
|
var_tags="media;automation"
|
|
var_cpu="2"
|
|
var_ram="2048"
|
|
var_disk="8"
|
|
var_os="debian"
|
|
var_version="12"
|
|
var_unprivileged="1"
|
|
|
|
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
|
|
|
|
update_available=$(curl -s -X 'GET' "http://localhost:19200/api/status/update-available" -H 'accept: application/json' | jq .UpdateAvailable)
|
|
if [[ "${update_available}" == "true" ]]; then
|
|
msg_info "Stopping $APP"
|
|
systemctl stop fileflows
|
|
msg_ok "Stopped $APP"
|
|
|
|
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)
|
|
wget -q https://fileflows.com/downloads/zip -O $temp_file
|
|
unzip -oq -d /opt/fileflows $temp_file
|
|
msg_ok "Updated $APP to latest version"
|
|
|
|
msg_info "Starting $APP"
|
|
systemctl start fileflows
|
|
msg_ok "Started $APP"
|
|
|
|
msg_info "Cleaning Up"
|
|
rm -rf $temp_file
|
|
rm -rf $backup_filename
|
|
msg_ok "Cleanup Completed"
|
|
|
|
msg_ok "Update Successful"
|
|
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}"
|