chore: deleted comments

This commit is contained in:
Kyle Kroboth 2025-03-13 19:58:46 -04:00
parent a6fc1dd4d2
commit b9d415e7a1
2 changed files with 1 additions and 11 deletions

View File

@ -24,7 +24,6 @@ function update_script() {
check_container_storage check_container_storage
check_container_resources check_container_resources
# Check if installation is present | -f for file, -d for folder
if [[ ! -d /opt/fileflows ]]; then if [[ ! -d /opt/fileflows ]]; then
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
@ -36,31 +35,26 @@ function update_script() {
systemctl stop fileflows systemctl stop fileflows
msg_ok "Stopped $APP" msg_ok "Stopped $APP"
# Creating Backup
msg_info "Creating Backup" msg_info "Creating Backup"
backup_filename="/opt/${APP}_backup_$(date +%F).tar.gz" backup_filename="/opt/${APP}_backup_$(date +%F).tar.gz"
tar -czf $backup_filename -C /opt/fileflows Data tar -czf $backup_filename -C /opt/fileflows Data
msg_ok "Backup Created" msg_ok "Backup Created"
# Execute Update
msg_info "Updating $APP to latest version" msg_info "Updating $APP to latest version"
temp_file=$(mktemp) temp_file=$(mktemp)
wget -q https://fileflows.com/downloads/zip -O $temp_file wget -q https://fileflows.com/downloads/zip -O $temp_file
unzip -oq -d /opt/fileflows $temp_file unzip -oq -d /opt/fileflows $temp_file
msg_ok "Updated $APP to latest version" msg_ok "Updated $APP to latest version"
# Starting Services
msg_info "Starting $APP" msg_info "Starting $APP"
systemctl start fileflows systemctl start fileflows
msg_ok "Started $APP" msg_ok "Started $APP"
# Cleaning up
msg_info "Cleaning Up" msg_info "Cleaning Up"
rm -rf $temp_file rm -rf $temp_file
rm -rf $backup_filename rm -rf $backup_filename
msg_ok "Cleanup Completed" msg_ok "Cleanup Completed"
# Last Action
msg_ok "Update Successful" msg_ok "Update Successful"
else else
msg_ok "No update required. ${APP} is already at latest version" msg_ok "No update required. ${APP} is already at latest version"

View File

@ -27,13 +27,12 @@ wait_for_api() {
done done
} }
# Installing Dependencies with the 3 core dependencies (curl;sudo;mc)
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y \ $STD apt-get install -y \
curl \ curl \
sudo \ sudo \
mc \ mc \
jq # Used for updating checking from json response jq
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing FFmpeg" msg_info "Installing FFmpeg"
@ -90,7 +89,6 @@ $STD apt-get update
$STD apt-get install -y aspnetcore-runtime-8.0 $STD apt-get install -y aspnetcore-runtime-8.0
msg_ok "Installed ASP.NET Core Runtime" msg_ok "Installed ASP.NET Core Runtime"
# Setup App
msg_info "Setup ${APPLICATION}" msg_info "Setup ${APPLICATION}"
temp_file=$(mktemp) temp_file=$(mktemp)
wget -q https://fileflows.com/downloads/zip -O $temp_file 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 systemctl enable -q --now fileflows.service
msg_ok "Setup ${APPLICATION}" msg_ok "Setup ${APPLICATION}"
# Modify ffmpeg and ffprobe variables so they point to correct locations
msg_info "Setting ffmpeg variables in fileflows" msg_info "Setting ffmpeg variables in fileflows"
wait_for_api wait_for_api
@ -137,7 +134,6 @@ msg_ok "ffmpeg and ffprobe variables have been updated successfully."
motd_ssh motd_ssh
customize customize
# Cleanup
msg_info "Cleaning up" msg_info "Cleaning up"
rm -f $temp_file rm -f $temp_file
$STD apt-get -y autoremove $STD apt-get -y autoremove