Skip to content

Commit

Permalink
v4.3.0
Browse files Browse the repository at this point in the history
1. Added automatic logging features (output .log as well as a .debug file)
2. Simplified Synology model name scrape
  • Loading branch information
michealespinola authored Apr 19, 2023
1 parent d9ee2b0 commit 2429c33
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions syno.plexupdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@
# Example Synology DSM Scheduled Task type 'user-defined script':
# bash /volume1/homes/admin/scripts/bash/plex/syno.plexupdate/syno.plexupdate.sh

# Redirect stdout to tee in order to duplicate the output to the terminal as well as a .log file
# Do this while redirecting stderr/debug to a .debug file
exec > >(tee "$0.log") 2>"$0.debug"

# Enable debug output
set -x

# SCRIPT VERSION
SPUScrpVer=4.2.0
SPUScrpVer=4.3.0
MinDSMVers=7.0
# PRINT OUR GLORIOUS HEADER BECAUSE WE ARE FULL OF OURSELVES
printf "\n"
Expand Down Expand Up @@ -149,7 +156,7 @@ fi
printf "\n"

# SCRAPE SYNOLOGY HARDWARE MODEL
SynoHModel=$(cat /proc/sys/kernel/syno_hw_version)
SynoHModel=$(< /proc/sys/kernel/syno_hw_version)
# SCRAPE SYNOLOGY CPU ARCHITECTURE FAMILY
ArchFamily=$(uname --machine)

Expand Down

0 comments on commit 2429c33

Please sign in to comment.