Logo white

Peter M. Groen / knowledgetree

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • knowledgetree
  • bin
  • fix_perms.sh
  • added parameter and usage ...
    80c97460
    
    git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@898 c91229c3-7414-0410-bfa2-8a42b809f60b
    Michael Joseph authored
    2003-02-10 11:45:38 +0000  
    Browse Code ยป
fix_perms.sh 335 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/bin/sh

# displays the script usage message 
#
usage() {
    echo "usage: `basename $0` user:group"
    echo "       eg. `basename $0` www:wheel"
    exit 1
}

# check the command line options
if [ $# -lt 1 ]; then
    usage
fi

wwwroot=../`dirname $0`

touch $wwwroot/log.txt
chown -R $1 $wwwroot
chmod -R 750 $wwwroot/Documents/*