Changes between Version 3 and Version 4 of setup_suexec_directory


Ignore:
Timestamp:
Apr 4, 2008, 12:02:50 PM (13 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • setup_suexec_directory

    v3 v4  
    1414if [ ! -d "$base" ]; then mkdir "$base"; fi
    1515
    16 sitepath=$(getent passwd | grep ^$user | cut -d: -f6 | cut -d/ -f1,2,3,4,5,6)
     16sitepath=$(getent passwd | grep "^$user" | cut -d: -f6 | cut -d/ -f1,2,3,4,5,6)
    1717site=$(echo "$sitepath" | cut -d/ -f6)
    1818group=$(echo "$sitepath" | cut -d/ -f4)
    1919
    2020if [ ! -d "$base/$site" ]; then
    21   mkdir "$base/$site"; fi
    22   chown "$user" "$base/$site"
     21  mkdir "$base/$site"
     22  chown "$user:$group" "$base/$site"
    2323fi
    2424