Skip to content

Commit e2148f3

Browse files
committed
feat(plugin): rm Date & Time format settings from Notification Settings
1 parent d4b429d commit e2148f3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

plugin/plugins/dynamix.unraid.net.plg

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ echo
454454
# skip: do not perform any action if there is a manifest version difference
455455
preserveFilesDirs=(
456456
"move:/usr/local/emhttp/plugins/dynamix/Registration.page:preventDowngrade"
457+
"copy:/usr/local/emhttp/plugins/dynamix/Notifications.page:preventDowngrade"
457458
"move:/usr/local/emhttp/plugins/dynamix/include/UpdateDNS.php:preventDowngrade"
458459
"move:/usr/local/emhttp/plugins/dynamix.plugin.manager/Downgrade.page:preventDowngrade"
459460
"move:/usr/local/emhttp/plugins/dynamix.plugin.manager/Update.page:preventDowngrade"
@@ -540,6 +541,19 @@ for FILE in "${FILES[@]}"; do
540541
fi
541542
done
542543
544+
# patch: Notifications.page
545+
#
546+
# Remove date and time format settings from Notification Settings
547+
# search text: _(Date format)_:
548+
# search text: _(Time format)_:
549+
550+
FILE=/usr/local/emhttp/plugins/dynamix/Notifications.page
551+
TMP_FILE=$(mktemp)
552+
cp "$FILE" "$TMP_FILE"
553+
sed -i '/_(Date format)_:/,/:notifications_date_format_help:/d' $TMP_FILE
554+
sed -i '/_(Time format)_:/,/:notifications_time_format_help:/d' $TMP_FILE
555+
mv "$TMP_FILE" "$FILE"
556+
543557
# remove keys.limetechnology.com from hosts file
544558
# brings older versions of Unraid in sync with 6.12.12
545559
# no need to restore original file on uninstall

0 commit comments

Comments
 (0)