Corrected RPM scriptlets to actually restart the systemd service on a package upgrade.

This commit is contained in:
Christian Meis 2022-01-05 15:47:24 +01:00
parent 8f7b61291f
commit 9b2ddabca9
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
#!/bin/sh
set -e
if [ "$1" = "install" ] || [ "$1" = "upgrade" ] || [ "$1" = "1" ]; then
if [ "$1" = "install" ] || [ "$1" = "upgrade" ] || [ "$1" -gt 1 ]; then
# Migration of old to new config file name
oldconfigfile="/etc/ntfy/config.yml"
configfile="/etc/ntfy/server.yml"