~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to platform/scripts/mkJail.sh

  • Committer: William Grant
  • Date: 2010-02-11 11:33:33 UTC
  • Revision ID: grantw@unimelb.edu.au-20100211113333-0j040ct188bfpjl5
Add subject creation/editing UI. Not linked just yet.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
usr="$1"
4
 
 
5
 
mkdir "/home/informatics/jails/$usr"
6
 
mkdir "/home/informatics/jails/$usr/home"
7
 
mkdir "/home/informatics/jails/$usr/home/$usr"
8
 
 
9
 
for f in `cd /home/informatics/config/jail; find . -print`
10
 
do
11
 
    if [ -d "$f" ]
12
 
    then
13
 
        mkdir "jails/$usr/$f"
14
 
    else
15
 
        ln "$f" "jails/$usr/$f"
16
 
    fi
17
 
done
18
 
 
19
 
chown -R "$usr" "jails/$usr"
20
 
chgrp -R `id -g "$usr"` "jails/$usr"
21