Adjust RPM scriptlets to work on RHEL-flavour OSes, too.

This commit is contained in:
Christian Meis 2022-01-05 13:32:15 +01:00
parent 7a7e7ca359
commit 88586c8f86
4 changed files with 4 additions and 4 deletions

View file

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