From b9d415e7a107f91405a0d48f6a05d10c97a0fc24 Mon Sep 17 00:00:00 2001 From: Kyle Kroboth Date: Thu, 13 Mar 2025 19:58:46 -0400 Subject: [PATCH] chore: deleted comments --- ct/fileflows.sh | 6 ------ install/fileflows-install.sh | 6 +----- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/ct/fileflows.sh b/ct/fileflows.sh index cf13b28..45d9c51 100644 --- a/ct/fileflows.sh +++ b/ct/fileflows.sh @@ -24,7 +24,6 @@ function update_script() { check_container_storage check_container_resources - # Check if installation is present | -f for file, -d for folder if [[ ! -d /opt/fileflows ]]; then msg_error "No ${APP} Installation Found!" exit @@ -36,31 +35,26 @@ function update_script() { systemctl stop fileflows msg_ok "Stopped $APP" - # Creating Backup 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" - # Execute Update 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" - # Starting Services msg_info "Starting $APP" systemctl start fileflows msg_ok "Started $APP" - # Cleaning up msg_info "Cleaning Up" rm -rf $temp_file rm -rf $backup_filename msg_ok "Cleanup Completed" - # Last Action msg_ok "Update Successful" else msg_ok "No update required. ${APP} is already at latest version" diff --git a/install/fileflows-install.sh b/install/fileflows-install.sh index 4a7b2e1..ec82b77 100644 --- a/install/fileflows-install.sh +++ b/install/fileflows-install.sh @@ -27,13 +27,12 @@ wait_for_api() { done } -# Installing Dependencies with the 3 core dependencies (curl;sudo;mc) msg_info "Installing Dependencies" $STD apt-get install -y \ curl \ sudo \ mc \ - jq # Used for updating checking from json response + jq msg_ok "Installed Dependencies" msg_info "Installing FFmpeg" @@ -90,7 +89,6 @@ $STD apt-get update $STD apt-get install -y aspnetcore-runtime-8.0 msg_ok "Installed ASP.NET Core Runtime" -# Setup App msg_info "Setup ${APPLICATION}" temp_file=$(mktemp) wget -q https://fileflows.com/downloads/zip -O $temp_file @@ -99,7 +97,6 @@ unzip -q -d /opt/fileflows $temp_file systemctl enable -q --now fileflows.service msg_ok "Setup ${APPLICATION}" -# Modify ffmpeg and ffprobe variables so they point to correct locations msg_info "Setting ffmpeg variables in fileflows" wait_for_api @@ -137,7 +134,6 @@ msg_ok "ffmpeg and ffprobe variables have been updated successfully." motd_ssh customize -# Cleanup msg_info "Cleaning up" rm -f $temp_file $STD apt-get -y autoremove