2 mkdir -p -m 775 /mnt/sshfs
3 chown :users /mnt/sshfs
9 # Let's see if everything is OK now..
10 # This may not be very accurate, because it runs as root,
11 # but it may still catch some potential problems.
12 output=$(sftpman preflight_check 2>&1)
13 if [ ! "$?" = "0" ]; then
14 echo -e "sftpman preflight_check results:\n"
24 echo "Unmounting any sftpman-mounted filesystems.."
25 # The sleep.d script knows how to unmount sftpman filesystems for all users.
26 # It's usually used during suspend/hibernate.
27 /etc/pm/sleep.d/49-sftpman suspend
31 rmdir --ignore-fail-on-non-empty /mnt/sshfs