Browse Source

ocserv: if ocserv.conf.local is present append it to ocserv.conf

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
lilik-openwrt-22.03
Nikos Mavrogiannopoulos 9 years ago
parent
commit
25eeddbb21
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      net/ocserv/files/ocserv.init
  2. +1
    -0
      net/ocserv/files/ocserv.upgrade

+ 2
- 0
net/ocserv/files/ocserv.init View File

@ -54,6 +54,8 @@ setup_config() {
-e "s#|IPV6ADDR|#$ip6addr#g" \
-e "s/|ENABLE_IPV6|/$enable_ipv6/g" \
/etc/ocserv/ocserv.conf.template > /var/etc/ocserv.conf
test -f /etc/ocserv/ocserv.conf.local && cat /etc/ocserv/ocserv.conf.local >> /var/etc/ocserv.conf
}
setup_users() {


+ 1
- 0
net/ocserv/files/ocserv.upgrade View File

@ -2,6 +2,7 @@
/etc/ocserv/ca.pem
/etc/ocserv/server-key.pem
/etc/ocserv/server-cert.pem
/etc/ocserv/ocserv.conf.local
/etc/ocserv/config-per-user/*
/etc/ocserv/config-per-group/*
/etc/ocserv/crl.pem

Loading…
Cancel
Save