From: Nikos Mavrogiannopoulos Date: Sat, 10 Jan 2015 20:50:17 +0000 (+0100) Subject: ocserv: corrected the extraction of dyndns name X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=251eaf99fd1c9ec93c8d39e7e238f895a9193d7b;p=feed%2Fpackages.git ocserv: corrected the extraction of dyndns name Signed-off-by: Nikos Mavrogiannopoulos --- diff --git a/net/ocserv/Makefile b/net/ocserv/Makefile index 9c26b46055..d01d980393 100644 --- a/net/ocserv/Makefile +++ b/net/ocserv/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ocserv PKG_VERSION:=0.8.9 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_BUILD_DIR :=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz diff --git a/net/ocserv/files/ocserv.init b/net/ocserv/files/ocserv.init index 3df6d24134..05ab34d2ff 100644 --- a/net/ocserv/files/ocserv.init +++ b/net/ocserv/files/ocserv.init @@ -31,7 +31,7 @@ setup_config() { test $auth = "plain" && authsuffix="\[/var/etc/ocpasswd\]" dyndns="false" - hostname=`uci show ddns|grep domain|head -1|cut -d '=' -f 1` + hostname=`uci show ddns|grep domain|head -1|cut -d '=' -f 2` [ -n "$hostname" ] && dyndns="true" mkdir -p /var/etc @@ -91,7 +91,7 @@ setup_dns() { start() { local hostname iface - hostname=`uci show ddns|grep domain|head -1|cut -d '=' -f 1` + hostname=`uci show ddns|grep domain|head -1|cut -d '=' -f 2` [ -z "$hostname" ] && hostname=`uci get system.@system[0].hostname` [ ! -f /etc/ocserv/ca-key.pem ] && [ -x /usr/bin/certtool ] && {