Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #89

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v1.4.31
- Updated to work with xpe. Issues #88 #83 and maybe #73
- Prevent Entware or user edited PATH causing issues.

v1.4.30
- Updated help to explain why Synology avoids using deduplication on HDDs.
- Updated Finished message to say you may need to reboot.
Expand Down
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