Changeset 1836 in ProjectBuilder


Ignore:
Timestamp:
Jan 7, 2014, 12:42:24 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • pbshouldn't look for chown locally and call it with the full path in the chroot as this doesn't necessarily work !
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1795 r1836  
    24222422    pb_system("cd $ENV{'PBBUILDDIR'} ; $cpcmd $src $cptarget 2> /dev/null","$cmt delivery in $cptarget");
    24232423
    2424     my $chowncommand = pb_check_req("chown",0);
    24252424    # For VE we need to change the owner manually
    24262425    if ($cmt =~ /^VE/) {
     
    24282427        my $res = pb_system("$shcmdroot sed -i '/requiretty/d' /etc/sudoers","Removing potential requiretty in sudoers","quiet");
    24292428        pb_system("$shcmdroot sed '/requiretty/d' /etc/sudoers > /tmp/sudoers.new ; mv /tmp/sudoers.new $tpdir/tmp/sudoers.new ; $shcmdroot mv /tmp/sudoers.new /etc/sudoers ; $shcmdroot chown root:root /etc/sudoers ; $shcmdroot chmod $sudomode /etc/sudoers","Removing again potential requiretty in sudoers as sed -i failed") if (($res ne 0) && (-f "$tpdir/etc/sudoers"));
    2430         pb_system("$shcmd \"sudo $chowncommand -R $mac $tdir\"","Adapt owner in $tdir to $mac");
     2429        pb_system("$shcmd \"sudo chown -R $mac $tdir\"","Adapt owner in $tdir to $mac");
    24312430    }
    24322431
Note: See TracChangeset for help on using the changeset viewer.