mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
feat(plugin): rm Date & Time format settings from Notification Settings
This commit is contained in:
committed by
Pujit Mehrotra
parent
8760a66907
commit
acba0b0365
@@ -454,6 +454,7 @@ echo
|
||||
# skip: do not perform any action if there is a manifest version difference
|
||||
preserveFilesDirs=(
|
||||
"move:/usr/local/emhttp/plugins/dynamix/Registration.page:preventDowngrade"
|
||||
"copy:/usr/local/emhttp/plugins/dynamix/Notifications.page:preventDowngrade"
|
||||
"move:/usr/local/emhttp/plugins/dynamix/include/UpdateDNS.php:preventDowngrade"
|
||||
"move:/usr/local/emhttp/plugins/dynamix.plugin.manager/Downgrade.page:preventDowngrade"
|
||||
"move:/usr/local/emhttp/plugins/dynamix.plugin.manager/Update.page:preventDowngrade"
|
||||
@@ -540,6 +541,19 @@ for FILE in "${FILES[@]}"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# patch: Notifications.page
|
||||
#
|
||||
# Remove date and time format settings from Notification Settings
|
||||
# search text: _(Date format)_:
|
||||
# search text: _(Time format)_:
|
||||
|
||||
FILE=/usr/local/emhttp/plugins/dynamix/Notifications.page
|
||||
TMP_FILE=$(mktemp)
|
||||
cp "$FILE" "$TMP_FILE"
|
||||
sed -i '/_(Date format)_:/,/:notifications_date_format_help:/d' $TMP_FILE
|
||||
sed -i '/_(Time format)_:/,/:notifications_time_format_help:/d' $TMP_FILE
|
||||
mv "$TMP_FILE" "$FILE"
|
||||
|
||||
# remove keys.limetechnology.com from hosts file
|
||||
# brings older versions of Unraid in sync with 6.12.12
|
||||
# no need to restore original file on uninstall
|
||||
|
||||
Reference in New Issue
Block a user