Skip to content

Commit

Permalink
Don't overwrite configuration files in <sysconfdir>/ppp
Browse files Browse the repository at this point in the history
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
<sysconfdir>/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 <paulus@ozlabs.org>
  • Loading branch information
paulusmack committed Sep 13, 2024
1 parent 1d0bff9 commit 041084f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 041084f

Please sign in to comment.