~mdw
/
firewall
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vampire: Allow MPD traffic through.
[firewall]
/
local.mk
diff --git
a/local.mk
b/local.mk
index
c413cdb
..
8294782
100644
(file)
--- a/
local.mk
+++ b/
local.mk
@@
-7,6
+7,8
@@
HOSTS += vampire
ROOT = become root
ROOT = become root
+SCRIPTS += logtrawl
+
## Installation.
install: all
firewall_script=./`hostname`.sh && \
## Installation.
install: all
firewall_script=./`hostname`.sh && \
@@
-15,4
+17,12
@@
install: all
$(ROOT) ./$$firewall_script
for i in $(HOSTS); do \
$(ROOT) scp $$i.sh $$i:/etc/init.d/firewall; \
$(ROOT) ./$$firewall_script
for i in $(HOSTS); do \
$(ROOT) scp $$i.sh $$i:/etc/init.d/firewall; \
+ for j in $(SCRIPTS); do \
+ $(ROOT) ssh $$i <$$j " \
+ cd /usr/local/sbin && \
+ rm -f $$j.new && \
+ cat >$$j.new && \
+ chmod 755 $$j.new && \
+ mv $$j.new $$j"; \
+ done; \
done
done