Set up ssh tunnel from spinch to plugh.de
This commit is contained in:
parent
d53b86d3ca
commit
3609b1b760
2 changed files with 23 additions and 2 deletions
|
|
@ -12,11 +12,18 @@ rsync -vP \
|
|||
bondrucker@spinch:showbits-thermal-printer.service
|
||||
or return 1
|
||||
|
||||
rsync -vP \
|
||||
showbits-thermal-printer/meta/spinch-tunnel.service \
|
||||
bondrucker@spinch:showbits-thermal-printer-tunnel.service
|
||||
or return 1
|
||||
|
||||
rsync -vP \
|
||||
target/aarch64-unknown-linux-gnu/release/showbits-thermal-printer \
|
||||
bondrucker@spinch:showbits-thermal-printer
|
||||
or return 1
|
||||
|
||||
ssh root@spinch "\
|
||||
systemctl daemon-reload && \
|
||||
systemctl restart showbits-thermal-printer.service"
|
||||
systemctl daemon-reload \
|
||||
&& systemctl restart showbits-thermal-printer.service \
|
||||
&& systemctl restart showbits-thermal-printer-tunnel.service \
|
||||
"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue