mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
ocserv: updated to 0.8.9
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -30,12 +30,17 @@ setup_config() {
|
||||
|
||||
test $auth = "plain" && authsuffix="\[/var/etc/ocpasswd\]"
|
||||
|
||||
dyndns="false"
|
||||
hostname=`uci show ddns|grep domain|head -1|cut -d '=' -f 2`
|
||||
[ -n "$hostname" ] && dyndns="true"
|
||||
|
||||
mkdir -p /var/etc
|
||||
sed -e "s/|PORT|/$port/g" \
|
||||
-e "s/|MAX_CLIENTS|/$max_clients/g" \
|
||||
-e "s/|MAX_SAME|/$max_same/g" \
|
||||
-e "s/|DPD|/$dpd/g" \
|
||||
-e "s#|AUTH|#$auth$authsuffix#g" \
|
||||
-e "s#|DYNDNS|#$dyndns#g" \
|
||||
-e "s/|PREDICTABLE_IPS|/$predictable_ips/g" \
|
||||
-e "s/|CISCO_COMPAT|/$cisco_compat/g" \
|
||||
-e "s/|UDP|/$udp/g" \
|
||||
@@ -89,7 +94,7 @@ start() {
|
||||
user_exists ocserv 72 || user_add ocserv 72 72 /var/lib/ocserv
|
||||
group_exists ocserv 72 || group_add ocserv 72
|
||||
|
||||
hostname=`uci get ddns.myddns.domain`
|
||||
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 ] && {
|
||||
|
||||
Reference in New Issue
Block a user