[PR #86] [MERGED] Adjust RPM scriptlets to work on RHEL-flavour OSes, too. #1217

Closed
opened 2026-05-07 01:01:03 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/binwiederhier/ntfy/pull/86
Author: @cmeis
Created: 1/5/2022
Status: Merged
Merged: 1/5/2022
Merged by: @binwiederhier

Base: mainHead: rpm-rhel


📝 Commits (5)

  • 88586c8 Adjust RPM scriptlets to work on RHEL-flavour OSes, too.
  • 523e037 Switch from parentheses to nested if statements for the RPM scriptlets.
  • 8f7b612 Add quotes
  • 9b2ddab Corrected RPM scriptlets to actually restart the systemd service on a package upgrade.
  • 814690e One more correction to RPM scriptlets

📊 Changes

4 files changed (+35 additions, -31 deletions)

View changed files

📝 scripts/postinst.sh (+25 -23)
📝 scripts/postrm.sh (+1 -1)
📝 scripts/preinst.sh (+1 -1)
📝 scripts/prerm.sh (+8 -6)

📄 Description

I suppose in prerm.sh the existing

[ "$1" = remove ]

should be a

[ "$1" = "remove" ]

too?


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/binwiederhier/ntfy/pull/86 **Author:** [@cmeis](https://github.com/cmeis) **Created:** 1/5/2022 **Status:** ✅ Merged **Merged:** 1/5/2022 **Merged by:** [@binwiederhier](https://github.com/binwiederhier) **Base:** `main` ← **Head:** `rpm-rhel` --- ### 📝 Commits (5) - [`88586c8`](https://github.com/binwiederhier/ntfy/commit/88586c8f8623150014acb4d82eb5b876dd511cf5) Adjust RPM scriptlets to work on RHEL-flavour OSes, too. - [`523e037`](https://github.com/binwiederhier/ntfy/commit/523e037900c7312ac6a549c3cd9ef0887dbd7674) Switch from parentheses to nested if statements for the RPM scriptlets. - [`8f7b612`](https://github.com/binwiederhier/ntfy/commit/8f7b61291f6ac4786593a2a5aa2151bdcff8b669) Add quotes - [`9b2ddab`](https://github.com/binwiederhier/ntfy/commit/9b2ddabca9130d61d67fc41dc43fe0ea24075290) Corrected RPM scriptlets to actually restart the systemd service on a package upgrade. - [`814690e`](https://github.com/binwiederhier/ntfy/commit/814690e66b48d362d4295204427df0279771d622) One more correction to RPM scriptlets ### 📊 Changes **4 files changed** (+35 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `scripts/postinst.sh` (+25 -23) 📝 `scripts/postrm.sh` (+1 -1) 📝 `scripts/preinst.sh` (+1 -1) 📝 `scripts/prerm.sh` (+8 -6) </details> ### 📄 Description I suppose in prerm.sh the existing ``` [ "$1" = remove ] ``` should be a ``` [ "$1" = "remove" ] ``` too? --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 01:01:03 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#1217
No description provided.