tang: Fix installation error, missing fi statement
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 d49c79b76b
tang: remove outdated
key handling.
if statement is not closed.
Signed-off-by: René van Dorst <opensource@vdorst.com>
This commit is contained in:
parent
ae92cdda13
commit
077fed709a
|
@ -55,6 +55,7 @@ if [ -z "$${IPKG_INSTROOT}" ]; then
|
||||||
KEYS=$(find /usr/share/tang/db/ -name "*.jw*" -maxdepth 1 | wc -l)
|
KEYS=$(find /usr/share/tang/db/ -name "*.jw*" -maxdepth 1 | wc -l)
|
||||||
if [ "${KEYS}" = "0" ]; then # if db is empty generate new key pair
|
if [ "${KEYS}" = "0" ]; then # if db is empty generate new key pair
|
||||||
/usr/libexec/tangd-keygen /usr/share/tang/db/
|
/usr/libexec/tangd-keygen /usr/share/tang/db/
|
||||||
|
fi
|
||||||
(cat /etc/services | grep -E "tangd.*8888\/tcp") > /dev/null \
|
(cat /etc/services | grep -E "tangd.*8888\/tcp") > /dev/null \
|
||||||
|| echo -e "tangd\t\t8888/tcp" >> /etc/services
|
|| echo -e "tangd\t\t8888/tcp" >> /etc/services
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue