Changes between Version 9 and Version 10 of SshfsMnt


Ignore:
Timestamp:
Oct 14, 2015, 12:25:48 PM (3 years ago)
Author:
chris
Comment:

Check script is run as root

Legend:

Unmodified
Added
Removed
Modified
  • SshfsMnt

    v9 v10  
    1111
    1212# http://fuse.sourceforge.net/sshfs.html
     13
     14# check that the script is being run by root
     15if [[ "$(id -u)" != "0" ]] ; then
     16  echo "You must run '$0' as root or via sudo"
     17  exit 1
     18fi
    1319
    1420# the place file systems are to be mounted
     
    6975# http://fuse.sourceforge.net/sshfs.html
    7076
     77# check that the script is being run by root
     78if [[ "$(id -u)" != "0" ]] ; then
     79  echo "You must run '$0' as root or via sudo"
     80  exit 1
     81fi
     82
    7183# the place file systems are to be mounted
    7284MOUNT_POINT="/media"