[1/5] fff-gateway: suppress unwanted error for config existance check

Submitted by Adrian Schmutzler on April 25, 2020, 5:51 p.m.

Details

Message ID 20200425175114.2152-1-freifunk@adrianschmutzler.de
State Superseded
Headers show

Commit Message

Adrian Schmutzler April 25, 2020, 5:51 p.m.
We provide our own error message, so suppress the built-in one.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
---
 src/packages/fff/fff-gateway/files/etc/gateway.d/01-version | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/src/packages/fff/fff-gateway/files/etc/gateway.d/01-version b/src/packages/fff/fff-gateway/files/etc/gateway.d/01-version
index 15531795..9d303223 100644
--- a/src/packages/fff/fff-gateway/files/etc/gateway.d/01-version
+++ b/src/packages/fff/fff-gateway/files/etc/gateway.d/01-version
@@ -3,7 +3,7 @@  configure() {
 	local config_version=$(uci -q get gateway.meta.config_version)
 
 	# check if gateway config exists
-	if ! uci show gateway > /dev/null; then
+	if ! uci -q show gateway > /dev/null; then
 		echo "ERROR: Gateway config could not be parsed or does not exist."
 
 		exit 1

Comments

Fabian Blaese April 26, 2020, 11:10 a.m.
Reviewed-by: Fabian Bläse <fabian@blaese.de>