From 041084f529753d33a8e3388c11f7d5b2094329cc Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Fri, 13 Sep 2024 20:45:14 +1000 Subject: [PATCH] Don't overwrite configuration files in /ppp This renames the configuration files in etc.ppp/ to have ".example" on the end of their names. This is so that when they are copied to /ppp (often /etc/ppp), they don't overwrite existing pppd configuration files, and it is clear that they are just examples. Signed-off-by: Paul Mackerras --- Makefile.am | 15 ++++++++------- etc.ppp/{chap-secrets => chap-secrets.example} | 0 etc.ppp/{eaptls-client => eaptls-client.example} | 0 etc.ppp/{eaptls-server => eaptls-server.example} | 0 etc.ppp/{openssl.cnf => openssl.cnf.example} | 0 etc.ppp/{options => options.example} | 0 etc.ppp/{pap-secrets => pap-secrets.example} | 0 7 files changed, 8 insertions(+), 7 deletions(-) rename etc.ppp/{chap-secrets => chap-secrets.example} (100%) rename etc.ppp/{eaptls-client => eaptls-client.example} (100%) rename etc.ppp/{eaptls-server => eaptls-server.example} (100%) rename etc.ppp/{openssl.cnf => openssl.cnf.example} (100%) rename etc.ppp/{options => options.example} (100%) rename etc.ppp/{pap-secrets => pap-secrets.example} (100%) diff --git a/Makefile.am b/Makefile.am index 23b16c11e..3de35c8c9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -10,16 +10,17 @@ DIST_SUBDIRS = $(SUBDIRS) include scripts install-data-hook: (cd $(DESTDIR)/$(sysconfdir)/$(PACKAGE) ; \ - chmod 600 chap-secrets pap-secrets eaptls-server eaptls-client) + chmod 600 chap-secrets.example pap-secrets.example \ + eaptls-server.example eaptls-client.example) sampledir = $(sysconfdir)/$(PACKAGE) sample_DATA = \ - etc.ppp/options \ - etc.ppp/chap-secrets \ - etc.ppp/pap-secrets \ - etc.ppp/eaptls-server \ - etc.ppp/eaptls-client \ - etc.ppp/openssl.cnf + etc.ppp/options.example \ + etc.ppp/chap-secrets.example \ + etc.ppp/pap-secrets.example \ + etc.ppp/eaptls-server.example \ + etc.ppp/eaptls-client.example \ + etc.ppp/openssl.cnf.example EXTRA_README = \ Changes-2.3 \ diff --git a/etc.ppp/chap-secrets b/etc.ppp/chap-secrets.example similarity index 100% rename from etc.ppp/chap-secrets rename to etc.ppp/chap-secrets.example diff --git a/etc.ppp/eaptls-client b/etc.ppp/eaptls-client.example similarity index 100% rename from etc.ppp/eaptls-client rename to etc.ppp/eaptls-client.example diff --git a/etc.ppp/eaptls-server b/etc.ppp/eaptls-server.example similarity index 100% rename from etc.ppp/eaptls-server rename to etc.ppp/eaptls-server.example diff --git a/etc.ppp/openssl.cnf b/etc.ppp/openssl.cnf.example similarity index 100% rename from etc.ppp/openssl.cnf rename to etc.ppp/openssl.cnf.example diff --git a/etc.ppp/options b/etc.ppp/options.example similarity index 100% rename from etc.ppp/options rename to etc.ppp/options.example diff --git a/etc.ppp/pap-secrets b/etc.ppp/pap-secrets.example similarity index 100% rename from etc.ppp/pap-secrets rename to etc.ppp/pap-secrets.example