Changeset 560


Ignore:
Timestamp:
12/16/2011 18:10:23 (5 months ago)
Author:
blee
Message:

Merge fix for #110 into confman-1.9.

Fixes #110

Location:
branches/confman-1.9
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/confman-1.9

    • Property svn:mergeinfo changed
      /trunkmerged: 506
  • branches/confman-1.9/confman.conf.5.in

    r559 r560  
    139139be treated as singularities by 
    140140.Xr confman 8 . 
     141.It CONF_GROUP 
     142Defaults to "wheel". Specify which  
     143.Xr group 5  
     144should have access to various state files. 
    141145.It CONF_WARNING 
    142146This is the first line of confman banners for managed files. 
  • branches/confman-1.9/confmancommon.sh.in

    r494 r560  
    133133fi 
    134134 
    135 # Test if the specified group exists before setting folder groups 
     135# Create and/or fix permissions on our local state directory 
    136136if ! [ -d "$REPO_DB" ] ; then 
    137         if ! [ conf_checkgroup ]; then 
    138                 $SUDO $install_cmd -d -o root -m 770 "$REPO_DB" 
    139         else 
    140                 $SUDO $install_cmd -d -o root -g $CONF_GROUP -m 770 "$REPO_DB" 
    141         fi 
    142         $SUDO chmod g+s "$REPO_DB" 
     137    $SUDO $install_cmd -d -o root -g $CONF_GROUP -m 2770 "$REPO_DB" 
    143138fi 
     139find $REPO_DB -not -group $CONF_GROUP -exec $SUDO chgrp $CONF_GROUP {} \; \ 
     140    -exec chmod g+r {} \; 
    144141 
    145142# And we'll set a trap: 
Note: See TracChangeset for help on using the changeset viewer.