mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
pptpd: Fix secrets update
Clear pptp-server existing logins from CHAP_SECRETS file before adding new login data. Signed-off-by: Thiago Pereira Ricciardi <thiago.ricciardi@gmail.com>
This commit is contained in:
committed by
Florian Eckert
parent
b49fb10610
commit
47ea48c09d
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=pptpd
|
||||
PKG_VERSION:=1.4.0
|
||||
PKG_RELEASE:=5
|
||||
PKG_RELEASE:=6
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@SF/poptop
|
||||
|
||||
@@ -62,6 +62,7 @@ setup_config() {
|
||||
start_service() {
|
||||
config_load pptpd
|
||||
validate_pptpd_section pptpd setup_config || return
|
||||
sed -i -E "/^\w+\s+pptp-server\s+.+$/d" $CHAP_SECRETS
|
||||
config_foreach validate_login_section login setup_login
|
||||
|
||||
ln -sfn $CHAP_SECRETS /etc/ppp/chap-secrets
|
||||
|
||||
Reference in New Issue
Block a user