Update Makefile

This commit is contained in:
Irakli Gozalishvili 2020-10-20 13:07:58 -07:00 committed by GitHub
parent 8ae644293e
commit 00831257a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,10 @@ download_prebuilt:
.PHONY: install
install: printer.arm
ssh-add
ssh root@$(host) systemctl stop printer 2>&1 >/dev/null
if ssh root@$(host) systemctl is-active --quiet printer;
then
[stop service]
fi
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'