mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 00:13:49 +01:00
Example of ow to test an empty mountpoint
parent
e4213d2820
commit
fbc233e614
@ -45,7 +45,7 @@ ExecStartPre=/usr/bin/test -x /usr/bin/rclone
|
||||
#Check the mount directory
|
||||
ExecStartPre=/usr/bin/test -d "${MOUNT_DIR}"
|
||||
ExecStartPre=/usr/bin/test -w "${MOUNT_DIR}"
|
||||
#TODO: Add test for MOUNT_DIR being empty
|
||||
#TODO: Add test for MOUNT_DIR being empty -> ExecStartPre=/usr/bin/test -z "$(ls -A "${MOUNT_DIR}")"
|
||||
|
||||
#Check the rclone configuration file
|
||||
ExecStartPre=/usr/bin/test -f "${RCLONE_CONF}"
|
||||
|
Loading…
Reference in New Issue
Block a user