Only source configuration files that end with the `.conf` extension?

Information

ID: 286
PHID: PHID-TASK-qjdqj6to5fzvvgyu4j5h
Author: Patrick
Status at Migration Time: resolved
Priority at Migration Time: Normal

Description

! In T275#4134, @nrgaway wrote:
XXX: @Patrick, do your scripts ignore backed up files in directories such as /etc/whonix_firewall.d.... If not, maybe consider using a standard extension of .conf and only include those?

Files that end with ~ are ignored (backup files by many editors). Files that end with .dpkg-* are ignored (file names used by dpkg conflict resolution). So you could rename these files for example to .dpkg-nouse.

Do we want to rename all the config files to include a .conf extension and then only source those? Any opinions?

Existing documentation:

The config folder sourceing code for #whonix-gw-firewall be viewed here:
https://github.com/Whonix/whonix-gw-firewall/blob/master/usr/bin/whonix_firewall#L27
https://github.com/Whonix/whonix-gw-firewall/blob/5ebca43416269a5fd42c98a80af1b0b3d38adecf/usr/bin/whonix_firewall#L27

Others for #whonixcheck etc. look similar.

Comments


Patrick

2015-11-30 19:56:22 UTC


Patrick

2015-11-30 21:55:34 UTC


Patrick

2016-04-28 02:49:16 UTC


Patrick

2016-04-28 03:07:38 UTC


Patrick

2016-04-29 00:50:44 UTC


Patrick

2016-04-29 03:55:14 UTC