summaryrefslogtreecommitdiffstats
path: root/services/Makefile
diff options
context:
space:
mode:
authorroot <root@darth_serious>2013-02-14 13:06:07 +0100
committerroot <root@darth_serious>2013-02-14 13:06:07 +0100
commit62b197ea0604cf9d785bf67eefcf7be00daa92b9 (patch)
tree63632a2d15cff280d3640eed9818a9a098ed35d5 /services/Makefile
parentc5953301c721096e97ce7e83037f0da85ee4eaa7 (diff)
create routine to update ssh_authorized_keys via ssh
Diffstat (limited to 'services/Makefile')
-rw-r--r--services/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/services/Makefile b/services/Makefile
index 37931f47..a4db7df1 100644
--- a/services/Makefile
+++ b/services/Makefile
@@ -7,7 +7,8 @@ export services_home := /opt/services
.PHONY: authorized_keys
-service-user: $(services_home)/services.txt $(services_home)/.ssh/authorized_keys
+
+service-user: $(services_home)/services.txt ssh_authorized_keys
@echo 'also make sure that the user is created: make create-service-user'
create-service-user:
@@ -15,6 +16,8 @@ create-service-user:
rmdir $(services_home)
useradd -m -r -l -f -1 -d $(services_home) services
+ssh_authorized_keys: $(services_home)/.ssh/authorized_keys
+
$(services_home)/.ssh:
mkdir $@
chown services:services $@