25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

17 lines
540B

  1. {{ ansible_managed | comment }}
  2. [Unit]
  3. Description=barrier ssh connection
  4. PartOf=graphical-session.target
  5. [Service]
  6. Type=simple
  7. ExecStart=sh -c "sleep infinity | ssh $@" ssh -R 24800:localhost:24800 %i\
  8. systemctl --user stop lockscreen.service;\
  9. systemctl --user start barrierc@localhost.service;\
  10. systemd-run --user -u lockscreen-barrier-unlock sh -c "\"cat < lock > /dev/null; systemctl --user start lockscreen.service; systemctl --user stop barrierc@localhost.service;\"";\
  11. exec cat > lock
  12. [Install]
  13. WantedBy=graphical-session.target