Skip to content

Commit

Permalink
Update syno_enable_dedupe.sh
Browse files Browse the repository at this point in the history
v1.4.31
- Updated to work with xpe. Issues #88 #83 and maybe #73
- Prevent Entware or user edited PATH causing issues.
  • Loading branch information
007revad authored Dec 19, 2024
1 parent 64a8ffa commit c19544c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion syno_enable_dedupe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@

# Added support for DSM 7.0.1 to 7.2 (untested)

scriptver="v1.4.30"
scriptver="v1.4.31"
script=Synology_enable_Deduplication
repo="007revad/Synology_enable_Deduplication"
scriptname=syno_enable_dedupe

# Prevent Entware or user edited PATH causing issues
# shellcheck disable=SC2155 # Declare and assign separately to avoid masking return values
export PATH=$(echo "$PATH" | sed -e 's/\/opt\/bin:\/opt\/sbin://')

# Check BASH variable is bash
if [ ! "$(basename "$BASH")" = bash ]; then
echo "This is a bash script. Do not run it with $(basename "$BASH")"
Expand Down Expand Up @@ -991,6 +995,12 @@ elif [[ -f "$strgmgr" ]]; then
fi


# Make sure xpe's storage_manager.js.gz includes our changes. Issue #88
if [[ -f "${strgmgr}.gz" ]]; then
gzip -c "${strgmgr}" > "${strgmgr}.gz"
fi


#----------------------------------------------------------
# Finished

Expand Down

0 comments on commit c19544c

Please sign in to comment.