1
0
mirror of https://github.com/pgrondek/config.git synced 2024-11-22 03:53:43 +00:00

[ssh] move install script to ssh folder

This commit is contained in:
pgrondek 2019-07-12 00:19:09 +02:00
parent 7006e4ca51
commit 95fcb7582a
2 changed files with 17 additions and 8 deletions

View File

@ -1,8 +0,0 @@
#!/bin/sh
rm -f $HOME/.ssh/authorized_keys
mkdir -p $HOME/.ssh
ln -s $(pwd)/ssh/authorized_keys $HOME/.ssh/authorized_keys

17
ssh/Makefile Normal file
View File

@ -0,0 +1,17 @@
AUTHORIZED_KEYS=authorized_keys
SSH_FOLDER=$(HOME)/.ssh
SSH_FOLDER_MOD=0700
.PHONY: clean_install
clean_install: clean install
$(SSH_FOLDER):
mkdir -p $(SSH_FOLDER)
chown $(SSH_FOLDER_MOD) $(SSH_FOLDER)
install: $(SSH_FOLDER)
cp $(AUTHORIZED_KEYS) $(SSH_FOLDER)
clean:
rm $(SSH_FOLDER)/$(AUTHORIZED_KEYS)