Browse Source

ocserv: regenerate the password file on reload

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Nikos Mavrogiannopoulos 10 years ago
parent
commit
b99e4cdf3b
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      net/ocserv/files/ocserv.init

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

@@ -182,6 +182,11 @@ stop() {
182 182
 }
183 183
        
184 184
 reload() {
185
+	rm -f /var/etc/ocpasswd
186
+	touch /var/etc/ocpasswd
187
+	chmod 600 /var/etc/ocpasswd
188
+	config_foreach setup_users ocservusers
189
+
185 190
 	/usr/bin/occtl show status >/dev/null 2>&1
186 191
 	if test $? != 0;then
187 192
 		start