Changes

From SME Server
Jump to navigationJump to search
746 bytes added ,  09:57, 22 November 2008
/* Configuration for sme7.4
Line 32: Line 32:  
  sed s/enabled=1/enabled=1\\npriority=10/ /etc/yum.conf.sav > yum.conf
 
  sed s/enabled=1/enabled=1\\npriority=10/ /etc/yum.conf.sav > yum.conf
    +
==== Modify /etc/yum.conf/* in sme 7.4 ====
 +
 +
create priority db default
 +
#!/bin/bash
 +
 +
for REPO in smeaddons smecontribs smedev smeextras smeos smetest smeupdates smeupdates-testing addons base  centosplus contrib extras updates
 +
do
 +
echo 5 > /etc/e-smith/db/yum_repositories/defaults/$REPO/priority
 +
done
 +
 +
echo "now run"
 +
echo "/etc/e-smith/events/actions/initialize-default-databases"
 +
echo "expand-template /etc/yum.smerepos.d/sme-base.repo"
 +
 +
add the following, to the bottom of the fragment, use templates-custom if you prefer
 +
nano -w  /etc/e-smith/templates-custom/etc/yum.smerepos.d/sme-base.repo/20repositories
 +
 +
      if (exists $props{priority})
 +
        {
 +
            $OUT .= "priority" . '=' . $props{priority} . "\n";
 +
        }
    
== Testing ==
 
== Testing ==

Navigation menu