Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # BEGIN ANSIBLE MANAGED BLOCK
- [Unit]
- Description=Plexdrive - Mount Google Drive File Systems
- [Service]
- Type=simple
- TimeoutStartSec=600
- 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
- ExecStopPost=/bin/fusermount -u /mnt/gdrive/encrypted
- [Install]
- WantedBy=multi-user.target
- # END ANSIBLE MANAGED BLOCK
- # BEGIN ANSIBLE MANAGED BLOCK
- [Unit]
- Description=Rclone - Decrypt encrypted Plexdrive
- BindsTo=plexdrive.service
- [Service]
- Type=simple
- ExecStartPre=/bin/bash -c 'while [ -z "$(ls -A /mnt/gdrive/encrypted)" ]; do /bin/sleep 5; done'
- ExecStart=/usr/bin/rclone --config /etc/rclone.conf mount --allow-other local-crypt: /mnt/gdrive/decrypted
- [Install]
- WantedBy=multi-user.target
- # END ANSIBLE MANAGED BLOCK
Add Comment
Please, Sign In to add comment