mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
ocserv: regenerate the password file on reload
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -182,6 +182,11 @@ stop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
reload() {
|
reload() {
|
||||||
|
rm -f /var/etc/ocpasswd
|
||||||
|
touch /var/etc/ocpasswd
|
||||||
|
chmod 600 /var/etc/ocpasswd
|
||||||
|
config_foreach setup_users ocservusers
|
||||||
|
|
||||||
/usr/bin/occtl show status >/dev/null 2>&1
|
/usr/bin/occtl show status >/dev/null 2>&1
|
||||||
if test $? != 0;then
|
if test $? != 0;then
|
||||||
start
|
start
|
||||||
|
|||||||
Reference in New Issue
Block a user