summaryrefslogtreecommitdiffstats
path: root/modules/retiolum
diff options
context:
space:
mode:
authorFelix Richter <github@syntax-fehler.de>2011-05-26 13:12:14 +0200
committerFelix Richter <github@syntax-fehler.de>2011-05-26 13:12:14 +0200
commit49f8b4c8689af96949228d16f9147218449632ca (patch)
treebeefbb24f6d871c26326a17f571702cf8c5e593e /modules/retiolum
parent231c96d75699738792e7235dc39b6c5a87e00b83 (diff)
replaced install script with Makefile
makefile contains 2 targets, install: curls the bootstrap script from github and executes it update: tries to git pull the hosts folder created by install, will obviously not work if the folder does not exist
Diffstat (limited to 'modules/retiolum')
-rw-r--r--modules/retiolum/Makefile8
-rw-r--r--modules/retiolum/install.sh1
2 files changed, 8 insertions, 1 deletions
diff --git a/modules/retiolum/Makefile b/modules/retiolum/Makefile
new file mode 100644
index 00000000..150255ae
--- /dev/null
+++ b/modules/retiolum/Makefile
@@ -0,0 +1,8 @@
+.phony: update install all
+
+all: select-target
+
+update:
+ git pull /etc/tinc/retiolum/hosts
+install:
+ curl -k https://github.com/miefda/retiolum/raw/master/.scripts/tinc_setup/bootstrap.sh | sh
diff --git a/modules/retiolum/install.sh b/modules/retiolum/install.sh
deleted file mode 100644
index d30857ce..00000000
--- a/modules/retiolum/install.sh
+++ /dev/null
@@ -1 +0,0 @@
-curl -k https://github.com/miefda/retiolum/raw/master/.scripts/tinc_setup/bootstrap.sh | sh