Guest User

Untitled

a guest
Feb 20th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. # BEGIN ANSIBLE MANAGED BLOCK
  2. [Unit]
  3. Description=Plexdrive - Mount Google Drive File Systems
  4.  
  5. [Service]
  6. Type=simple
  7. TimeoutStartSec=600
  8. ExecStart=/usr/bin/plexdrive mount -c /etc/plexdrive --cache-file=/etc/plexdrive/cache --root-node-id=1-BqHAg8CHbr9f-QzNqN5_U_0Ob0GGK0v -o allow_other /mnt/gdrive/encrypted
  9. ExecStopPost=/bin/fusermount -u /mnt/gdrive/encrypted
  10.  
  11. [Install]
  12. WantedBy=multi-user.target
  13. # END ANSIBLE MANAGED BLOCK
  14. # BEGIN ANSIBLE MANAGED BLOCK
  15. [Unit]
  16. Description=Rclone - Decrypt encrypted Plexdrive
  17. BindsTo=plexdrive.service
  18.  
  19. [Service]
  20. Type=simple
  21. ExecStartPre=/bin/bash -c 'while [ -z "$(ls -A /mnt/gdrive/encrypted)" ]; do /bin/sleep 5; done'
  22. ExecStart=/usr/bin/rclone --config /etc/rclone.conf mount --allow-other local-crypt: /mnt/gdrive/decrypted
  23.  
  24. [Install]
  25. WantedBy=multi-user.target
  26. # END ANSIBLE MANAGED BLOCK
Add Comment
Please, Sign In to add comment