From fbc233e614f2054ec11db3dcdc405bb55909bf2d Mon Sep 17 00:00:00 2001 From: dantefff Date: Mon, 19 Oct 2020 12:00:58 +0200 Subject: [PATCH] Example of ow to test an empty mountpoint --- Systemd-rclone-mount.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Systemd-rclone-mount.md b/Systemd-rclone-mount.md index 812ea1b..61cc678 100644 --- a/Systemd-rclone-mount.md +++ b/Systemd-rclone-mount.md @@ -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}"