Example of ow to test an empty mountpoint

dantefff 2020-10-19 12:00:58 +02:00
parent e4213d2820
commit fbc233e614

@ -45,7 +45,7 @@ ExecStartPre=/usr/bin/test -x /usr/bin/rclone
#Check the mount directory #Check the mount directory
ExecStartPre=/usr/bin/test -d "${MOUNT_DIR}" ExecStartPre=/usr/bin/test -d "${MOUNT_DIR}"
ExecStartPre=/usr/bin/test -w "${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 #Check the rclone configuration file
ExecStartPre=/usr/bin/test -f "${RCLONE_CONF}" ExecStartPre=/usr/bin/test -f "${RCLONE_CONF}"