From 07bce030f3068d561199b65199fe3a9751240b18 Mon Sep 17 00:00:00 2001 From: Thiago Pereira Ricciardi Date: Mon, 17 Mar 2025 22:49:25 -0300 Subject: [PATCH] pptpd: Fix secrets update Clear pptp-server existing logins from CHAP_SECRETS file before adding new login data. Signed-off-by: Thiago Pereira Ricciardi --- net/pptpd/Makefile | 2 +- net/pptpd/files/pptpd.init | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/net/pptpd/Makefile b/net/pptpd/Makefile index 65c4b9ce42..2e69d89ea0 100644 --- a/net/pptpd/Makefile +++ b/net/pptpd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pptpd PKG_VERSION:=1.5.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/poptop diff --git a/net/pptpd/files/pptpd.init b/net/pptpd/files/pptpd.init index ae39c0fd57..c97ce24210 100644 --- a/net/pptpd/files/pptpd.init +++ b/net/pptpd/files/pptpd.init @@ -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