Skip to content

Commit

Permalink
Make corridor-load-config gre�executable again
Browse files Browse the repository at this point in the history
Works as a config file sanity tester now. #10
  • Loading branch information
Rusty Bird committed Jul 4, 2016
1 parent d357f77 commit 75244c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014-2015, Rusty Bird <[email protected]>
Copyright (c) 2014-2016, Rusty Bird <[email protected]>

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ systemd-units: $(UNITS)

install: systemd-units
install -d $(DESTDIR)$(SBIN) $(DESTDIR)/etc/corridor.d $(DESTDIR)/var/lib/corridor
install corridor-data corridor-init* corridor-load-ipset* $(DESTDIR)$(SBIN)
install -m 644 corridor-load-config $(DESTDIR)$(SBIN)
install corridor-* $(DESTDIR)$(SBIN)
install -m 644 corridor.d/* $(DESTDIR)/etc/corridor.d
if pkg-config systemd; then install -d $(DESTDIR)$(SYSTEM) && install -m 644 $(UNITS) $(DESTDIR)$(SYSTEM); fi

Expand Down
6 changes: 6 additions & 0 deletions corridor-load-config
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/bin/sh -e

if test "${0##*/}" = corridor-load-config; then
set -x
fi

for f in /etc/corridor.d/*.conf; do
if test -e "$f"; then
. "$f"
Expand Down

0 comments on commit 75244c1

Please sign in to comment.