mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-12-24 10:42:31 +01:00
12 lines
307 B
Bash
12 lines
307 B
Bash
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
|
||
|
# 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
|