Force fixed strings on grep for media-monitor
Fixes removing the config file on re-running install
This commit is contained in:
parent
ebb6b59755
commit
4380ab9434
2
install
2
install
|
@ -768,7 +768,7 @@ loudCmd "./build.sh"
|
||||||
if [ -f /etc/airtime/airtime.conf ]; then
|
if [ -f /etc/airtime/airtime.conf ]; then
|
||||||
# TODO use VERSION or some other way to check for updates and handle
|
# TODO use VERSION or some other way to check for updates and handle
|
||||||
# media-monitor case on it's own
|
# media-monitor case on it's own
|
||||||
OLD_CONF=$(grep "[media-monitor]" /etc/airtime/airtime.conf)
|
OLD_CONF=$(grep -F "[media-monitor]" /etc/airtime/airtime.conf || true)
|
||||||
|
|
||||||
if [ -n "${OLD_CONF}" ]; then
|
if [ -n "${OLD_CONF}" ]; then
|
||||||
upgrade="t"
|
upgrade="t"
|
||||||
|
|
Loading…
Reference in New Issue