I added a WebDAV folder to /etc/fstab
https://my.owncloud.de/remote.php/dav/files/matt/ /home/matt/Owncloud davfs user,rw,auto 0 0
but when it's mounted then Ubuntu doesn't shut down. See more details in the attached image.
I added a WebDAV folder to /etc/fstab
https://my.owncloud.de/remote.php/dav/files/matt/ /home/matt/Owncloud davfs user,rw,auto 0 0
but when it's mounted then Ubuntu doesn't shut down. See more details in the attached image.
Create a custom script for unmount
nano /home/matt/Scripts/umountCloud.sh
Add unmount command
umount /home/matt/Owncloud
Make it executable
chmod +x /home/matt/Scripts/umountCloud.sh
Create a systems script
sudo nano /etc/systemd/system/preShutdown.service
Add following lines to execute the custom script on shutdown
[Unit] Description=Shutdown Process
[Service] Type=oneshot ExecStart=/home/matthias/Scripts/umountCloud.sh
[Install] WantedBy=multi-user.target