ocserv: regenerate the password file on reload
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
parent
094e1573b7
commit
b99e4cdf3b
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue