db yum_repositories set dag repository \ Name 'Dag – EL5' \ BaseURL 'http://apt.sw.be/redhat/el5/en/$basearch/dag' \ EnableGroups no \ GPGCheck yes \ GPGKey http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt \ Visible no \ Exclude freetype,htop,iptraf,rsync,syslinux \ status disabled
db yum_repositories set sme7contribs repository \ GPGCheck yes \ MirrorList http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-7 \ Name 'SME 7 - contribs' \ Visible no \ status disabled
signal-event yum-modify yum clean all
/usr/bin/yum install --enablerepo=sme7contribs --enablerepo=smeextras --enablerepo=dag smeserver-affa
signal-event utt.
db affa set AffaGlobalDisable yes db affa set mednis job db affa setprop mednis remoteHostName 192.168.1.100 db affa setprop mednis RPMCheck yes affa --make-cronjobs
cp /usr/lib/affa/jobconfig-sample.pl /root/mednis.pl
Salabot /root/mednis.pl Palaist /root/mednis.pl
affa --send-key mednis
Salabot yum ceļu (skatīties which yum) skriptā /sbin/e-smith/affa-rpmlist.sh
Laist
affa --run mednis
Pētīt atšķirības
less /var/affa/mednis/rpms-missing.txt
Pielietot yum un atkārtot, kamēr atšķirību nav.
TE SĀKAS DAĻĒJS DOWNTIME
SVC='qpsmtpd sqpsmtpd crond imap pop3 imaps pop3s ftp httpd-e-smith atalk smb qmail' for s in $SVC; do service $s stop; done
affa --run mednis
SĀKAS PILNĪGS DOWNTIME Vienam
poweroff
Otram
affa --rise --all mednis reboot
Pārbaudīt Server setup IP adreses.
BEIDZAS DOWNTIME