diff options
Diffstat (limited to 'etc/nextcloudpi-config.d/nc-automount.sh')
-rw-r--r-- | etc/nextcloudpi-config.d/nc-automount.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/nextcloudpi-config.d/nc-automount.sh b/etc/nextcloudpi-config.d/nc-automount.sh index 3ffaf1ae..08cbc86a 100644 --- a/etc/nextcloudpi-config.d/nc-automount.sh +++ b/etc/nextcloudpi-config.d/nc-automount.sh @@ -42,6 +42,7 @@ Before=mysqld.service dphys-swapfile.service fail2ban.service smbd.service nfs-s [Service] Restart=always +ExecStartPre=/bin/bash -c "rmdir /media/* || true" ExecStart=/usr/bin/udiskie -NTF [Install] |