Changes

From SME Server
Jump to navigationJump to search
Line 25: Line 25:  
Add the following rsync job to the newly created template fragment. All directories we do not want to sync are disabled with the <tt>--exclude</tt> parameter except for the 'smeupdates' directory which we want to replicate:
 
Add the following rsync job to the newly created template fragment. All directories we do not want to sync are disabled with the <tt>--exclude</tt> parameter except for the 'smeupdates' directory which we want to replicate:
 
   # Rsync SME-Server updates to local repository at 21 minutes after the hour, every two hours. Standard output is deleted (> /dev/null)
 
   # Rsync SME-Server updates to local repository at 21 minutes after the hour, every two hours. Standard output is deleted (> /dev/null)
   21 */2  * * *  root /usr/bin/rsync -aHhimOSz --partial --timeout 300 --delay-updates --delete-after --delete --max-delete 1000 --exclude 'contribs/' --exclude 'mirrorlist/' --exclude 'obsolete/' --exclude 'testing/' --exclude 'iso/' --exclude 'smeaddons/' --exclude 'smecontribs/' --exclude 'smedev/' --exclude 'smeextras/' --exclude 'smeos/' --exclude 'smetest/' --exclude 'smeupdates-testing/' --exclude 'SRPMS/' ibiblio.org::Linux/distributions/smeserver /home/e-smith/files/ibays/repos/html/ > /dev/null
+
   21 */2  * * *  root /usr/bin/rsync -aHhimOSz --partial --timeout 300 --delay-updates --delete-after --delete --max-delete 1000 --exclude 'contribs/' --exclude 'mirrorlist/' --exclude 'obsolete/' --exclude 'testing/' --exclude 'iso/' --exclude 'smeaddons/' --exclude 'smecontribs/' --exclude 'smedev/' --exclude 'smeextras/' --exclude 'smeos/' --exclude 'smetest/' --exclude 'smeupdates-testing/' --exclude 'SRPMS/' distro.ibiblio.org::smeserver /home/e-smith/files/ibays/repos/html/ > /dev/null
    
To activate the new fragment:
 
To activate the new fragment:
Line 31: Line 31:     
{{Tip box|If you would want to see what directories are offered by ibiblio.org you can run the following command:
 
{{Tip box|If you would want to see what directories are offered by ibiblio.org you can run the following command:
   rsync ibiblio.org::Linux/distributions/smeserver/}}
+
   rsync distro.ibiblio.org::smeserver/}}
      Line 38: Line 38:  
   /sbin/e-smith/db yum_repositories setprop smeupdates status disabled
 
   /sbin/e-smith/db yum_repositories setprop smeupdates status disabled
   −
And we will ad our own local repository. '''Replace the''' <tt><yourServersIP or FQDN></tt> '''part with the IP-address or the Fully Qualified Domain Name from the repo-server you created above''':
+
And we will ad our own local repository. Replace the '''<tt><yourServersIP or FQDN></tt>''' part with the IP-address or the Fully Qualified Domain Name from the repo-server you created above and '''<tt><SME RELEASE></tt>''' with the version of SME (eg.: 8, 9, ...):
 
   /sbin/e-smith/db yum_repositories set smeupdates-local repository \
 
   /sbin/e-smith/db yum_repositories set smeupdates-local repository \
 
   Name 'SME Server - updates (local)' \
 
   Name 'SME Server - updates (local)' \
   BaseURL 'http://<yourServersIP or FQDN>/repos/smeserver/releases/7/smeupdates/$basearch' \
+
   BaseURL '<nowiki>http://</nowiki><u><yourServersIP or FQDN></u>/repos/smeserver/releases/<u><SME RELEASE></u>/smeupdates/$basearch' \
 
   EnableGroups yes \
 
   EnableGroups yes \
 
   GPGCheck yes \
 
   GPGCheck yes \
Line 52: Line 52:  
Just to be sure, give yum a fresh start:
 
Just to be sure, give yum a fresh start:
 
   yum clean all
 
   yum clean all
      
== Uninstall ==
 
== Uninstall ==
167

edits

Navigation menu