From 077fed709af05dea98608349370e2120d5eef424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20van=20Dorst?= Date: Sat, 2 Oct 2021 21:35:45 +0200 Subject: [PATCH] tang: Fix installation error, missing fi statement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit root@OpenWrt:/# opkg install tang Package tang (10-3) installed in root is up to date. Configuring tang. //usr/lib/opkg/info/tang.postinst: /usr/lib/opkg/info/tang.postinst-pkg: line 9: syntax error: unexpected end of file (expecting "fi") Collected errors: * pkg_run_script: package "tang" postinst script returned status 2. * opkg_configure: tang.postinst returned 2. Fix commit d49c79b76b7c7659e063290d1bc7d7fad626780a tang: remove outdated key handling. if statement is not closed. Signed-off-by: René van Dorst --- utils/tang/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/tang/Makefile b/utils/tang/Makefile index 146622d2c7..33f5ec4f53 100644 --- a/utils/tang/Makefile +++ b/utils/tang/Makefile @@ -55,6 +55,7 @@ if [ -z "$${IPKG_INSTROOT}" ]; then KEYS=$(find /usr/share/tang/db/ -name "*.jw*" -maxdepth 1 | wc -l) if [ "${KEYS}" = "0" ]; then # if db is empty generate new key pair /usr/libexec/tangd-keygen /usr/share/tang/db/ + fi (cat /etc/services | grep -E "tangd.*8888\/tcp") > /dev/null \ || echo -e "tangd\t\t8888/tcp" >> /etc/services fi