dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit ace6840c8674d42499c184a4ab8e0afa4fa4e917
parent c544ca60e71e8e49bbcab1f1db92e10b32984d32
Author: rsiddharth <s@ricketyspace.net>
Date:   Sat, 19 May 2018 16:20:57 +0000

Makefile: Add etc.

* Makefile (etc): New target.
* etc/cron.d/rsync-to-mollisol: New file.

Diffstat:
Makefile | 10++++++++++
etc/cron.d/rsync-to-mollisol | 4++++
2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -4,3 +4,13 @@ DISTRO_DIR:=distros/$(DISTRO) all: @make -C $(DISTRO_DIR) all .PHONY: all + +# Provision /etc +ETC_FILES_SRC:=$(shell find etc -type f -print) +ETC_FILES_DST:=$(patsubst %,/%,$(ETC_FILES_SRC)) + +$(ETC_FILES_DST): $(ETC_FILES_SRC) + @sudo cp $(patsubst /%,%,$@) $@ + +etc: $(ETC_FILES_DST) +.PHONY: etc diff --git a/etc/cron.d/rsync-to-mollisol b/etc/cron.d/rsync-to-mollisol @@ -0,0 +1,4 @@ +SHELL=/bin/sh +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + +00 03 * * * s chronic '/usr/local/bin/rsync-to-mollisol-cronjob'