#!/bin/bash
TESTFILE="/mnt/user/Cloud/tdrive/.mounted.chk"
if [ ! -f "$TESTFILE" ]; then
  fusermount -uz /mnt/user/Cloud/tdrive
  docker restart Rclone-mount-tdrive
fi

TESTFILE="/mnt/user/Cloud/gdrive/.mounted.chk"
if [ ! -f "$TESTFILE" ]; then
  fusermount -uz /mnt/user/Cloud/gdrive
  docker restart Rclone-mount-gdrive
fi