dip

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

commit 30b8a1d18ded996e998053f6eee0494af2e78ddc
parent 0174fb2f7284870a4a7924e800a78490fbe4e85a
Author: rsiddharth <s@ricketyspace.net>
Date:   Wed, 23 May 2018 01:03:56 +0000

Makefile: Add target root.

Diffstat:
Makefile | 13+++++++++++++
root/.ssh/authorized_keys | 2++
2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -26,3 +26,16 @@ $(USR_FILES_DST): $(USR_FILES_SRC) usr: $(USR_FILES_DST) .PHONY: usr + +# Provision /root +root-dirs: + mkdir -pm 700 /root/.ssh +.PHONY: root-dirs + +ROOT_FILES_SRC:=$(shell find root $(IGNORE) -type f -print) +ROOT_FILES_DST:=$(patsubst %,/%,$(ROOT_FILES_SRC)) +$(ROOT_FILES_DST): $(ROOT_FILES_SRC) + rsync -pt $(patsubst /%,%,$@) $@ + +root: root-dirs $(ROOT_FILES_DST) +.PHONY: root diff --git a/root/.ssh/authorized_keys b/root/.ssh/authorized_keys @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDd7kT6tpH4zZ/hFlRmSVH1oJZZJJUvoMd89AiskXAq5rBrvZC90WVOF12OTQVQqslUVV2ze7BCC13UEfK5F2xP+7F6FDqSFApV4lBsJWLNbtDlZY23lTYqi/L6muq3x5tbqJLQjUK5ItORe0Ecqqz1ymSy+Zk+kHmHfnqyoWAQ7Z5GJkRu1B4J9uT3LJDIgLE8m4nJEOoCJ5vnycJfs0LCwHNZ67H38FV3Uw/sGibCNyCSJHQcG+nkKGYzABDcbXmWXedUq0MlRY2TjU22cOzjaAH0mf6M7m6KQCQeXjdxyyLaI3lNOzhBOU7j8/H9GqdRDH8pZ5e4xp+AG3tcrWi2E+47Qp4J9qv0YPgfj7JZ4oJhvCKGkgldOQZ8mkvjDLvAMGte0zpk2SPDlfJeFgfDHMre3nxAAzIfmhaIX2j86LdUh717BmcXDYD//9SubRLdAZrOKh4Iapcotm0STOFUlDa6nvh27DuKIIvq7v/+ID6P4fSNb4h1ktC/3lrhI21ei8ZjBulonJ9XV+BPGlnIzmWL7g5j4dMm90AqZXRRKQMAX9UIizLoCh58KR5gESszQ/8MSrELclI1fUwiY4Wxlvf6ZsGsg3c22xumxlnc85eiAYQ1LEPWNghcyqE96yrIhXrph3unLRsEbZcGxgXw/dcUtjIL9tjDO9zSN6ZuOQ== rsd@grus+ \ No newline at end of file