mirror of
https://github.com/Evidlo/remarkable_printer.git
synced 2024-10-20 03:27:37 -04:00
git rid of heredoc, add keys to ssh agent
This commit is contained in:
parent
00831257a4
commit
120a31dbfb
11
Makefile
11
Makefile
|
@ -20,14 +20,13 @@ download_prebuilt:
|
|||
# install to device
|
||||
.PHONY: install
|
||||
install: printer.arm
|
||||
ssh-add
|
||||
if ssh root@$(host) systemctl is-active --quiet printer;
|
||||
then
|
||||
[stop service]
|
||||
fi
|
||||
eval $(shell ssh-agent -s)
|
||||
ssh -o AddKeysToAgent=yes root@$(host) systemctl stop printer || true
|
||||
scp printer.arm root@$(host):
|
||||
scp printer.service root@$(host):/etc/systemd/system
|
||||
ssh root@$(host) 'systemctl daemon-reload && systemctl enable printer && systemctl restart printer'
|
||||
ssh root@$(host) systemctl daemon-reload
|
||||
ssh root@$(host) systemctl enable printer
|
||||
ssh root@$(host) systemctl restart printer
|
||||
|
||||
.PHONY: release
|
||||
release: printer.arm printer.x86
|
||||
|
|
Loading…
Reference in a new issue