mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-12-23 17:02:52 +03:00
9155c49571
This reverts commit 0821b8a25f
.
12 lines
325 B
Bash
Executable File
12 lines
325 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
if [ "$1" = "install" ] || [ "$1" = "upgrade" ] || [ "$1" -ge 1 ]; 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
|