summaryrefslogtreecommitdiff
path: root/EndoForge/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'EndoForge/Makefile')
-rw-r--r--EndoForge/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/EndoForge/Makefile b/EndoForge/Makefile
index 3fcbb2d..db8f77d 100644
--- a/EndoForge/Makefile
+++ b/EndoForge/Makefile
@@ -47,9 +47,14 @@ endef
47install: install-user install-root 47install: install-user install-root
48 48
49install-user: 49install-user:
50 $(INSTALL) -d ~/.ssh 50 $(INSTALL) -d ~/.ssh
51 $(INSTALL) -t ~/.ssh $(SRC)/AnonymousAccessCommand 51 $(INSTALL) -t ~/.ssh $(SRC)/AnonymousAccessCommand
52 $(EDIT_SSHD) < $(SRC)/sshd_config > ~/.ssh/sshd_config.tmp && $(MV) ~/.ssh/sshd_config.tmp ~/.ssh/sshd_config 52 $(EDIT_SSHD) < $(SRC)/sshd_config > ~/.ssh/sshd_config.tmp
53 $(MV) ~/.ssh/sshd_config.tmp ~/.ssh/sshd_config
54 $(INSTALL) -m0644 -t ~/.config/systemd/user $(SRC)/sshd.service
55 systemctl --user daemon-reload
56 systemctl --user enable sshd
57 systemctl --user restart sshd
53 58
54install-root: 59install-root:
55 $(ROOT_INSTALL) -d "$(SSH_CONFIG_DIR)" "$(SSHD_CONFIG_DIR)" "$(SSH_LIB_DIR)" || true 60 $(ROOT_INSTALL) -d "$(SSH_CONFIG_DIR)" "$(SSHD_CONFIG_DIR)" "$(SSH_LIB_DIR)" || true