mirror of
https://github.com/pgrondek/config.git
synced 2024-11-22 12:03:43 +00:00
[ssh] move install script to ssh folder
This commit is contained in:
parent
7006e4ca51
commit
95fcb7582a
@ -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
17
ssh/Makefile
Normal 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)
|
Loading…
Reference in New Issue
Block a user