2021-12-19 04:02:36 +01:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
2022-01-05 15:47:24 +01:00
|
|
|
if [ "$1" = "install" ] || [ "$1" = "upgrade" ] || [ "$1" -gt 1 ]; then
|
2021-12-19 04:02:36 +01:00
|
|
|
# Migration of old to new config file name
|
|
|
|
oldconfigfile="/etc/ntfy/config.yml"
|
|
|
|
configfile="/etc/ntfy/server.yml"
|
|
|
|
if [ -f "$oldconfigfile" ] && [ ! -f "$configfile" ]; then
|
|
|
|
mv "$oldconfigfile" "$configfile" || true
|
|
|
|
fi
|
|
|
|
fi
|