mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +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() {
|
||||
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
|
||||
if test $? != 0;then
|
||||
start
|
||||
|
||||
Reference in New Issue
Block a user