diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-27 22:12:23 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-27 22:12:23 -0400 |
commit | a58a4210a66f0d7a3f03a85b1f73b83a5ee3dc53 (patch) | |
tree | 36ebbbf30ecd20288229f52aa3b357d1af0b681c /modules/partofme | |
parent | 4d11155d5e8c1eb65e8db95525d4dbe286228c75 (diff) | |
download | puppet-tozt-a58a4210a66f0d7a3f03a85b1f73b83a5ee3dc53.tar.gz puppet-tozt-a58a4210a66f0d7a3f03a85b1f73b83a5ee3dc53.zip |
don't run rclone if /media/persistent isn't mounted
Diffstat (limited to 'modules/partofme')
-rw-r--r-- | modules/partofme/files/rclone-cron | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/partofme/files/rclone-cron b/modules/partofme/files/rclone-cron index 25ba91d..64d0d50 100644 --- a/modules/partofme/files/rclone-cron +++ b/modules/partofme/files/rclone-cron @@ -1,3 +1,7 @@ #!/bin/sh +if ! mount | grep -q /media/persistent; then + exit 1 +fi + rclone --config /etc/rclone.conf sync /media/persistent crypt:partofme |