Changeset 1051


Ignore:
Timestamp:
Jun 13, 2010, 12:35:08 PM (10 years ago)
Author:
Bruno Cornec
Message:

r3865@localhost: bruno | 2010-06-09 23:42:30 +0200

  • Use full path for useradd/groupadd to avoid PATH issues when root
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1037 r1051  
    23412341EOF
    23422342    print SCRIPT << "EOF";
    2343 pb_system("groupadd $pbac->{$ENV{'PBPROJ'}}","Adding group $pbac->{$ENV{'PBPROJ'}}");
    2344 pb_system("useradd -g $pbac->{$ENV{'PBPROJ'}} -m -d $home/$pbac->{$ENV{'PBPROJ'}} $pbac->{$ENV{'PBPROJ'}}","Adding user $pbac->{$ENV{'PBPROJ'}} (group $pbac->{$ENV{'PBPROJ'}} - home $home/$pbac->{$ENV{'PBPROJ'}})");
     2343pb_system("/usr/sbin/groupadd $pbac->{$ENV{'PBPROJ'}}","Adding group $pbac->{$ENV{'PBPROJ'}}");
     2344pb_system("/usr/sbin/useradd -g $pbac->{$ENV{'PBPROJ'}} -m -d $home/$pbac->{$ENV{'PBPROJ'}} $pbac->{$ENV{'PBPROJ'}}","Adding user $pbac->{$ENV{'PBPROJ'}} (group $pbac->{$ENV{'PBPROJ'}} - home $home/$pbac->{$ENV{'PBPROJ'}})");
    23452345}
    23462346EOF
Note: See TracChangeset for help on using the changeset viewer.