|
From: creedon <icr...@us...> - 2005-12-25 01:47:43
|
Update of /cvsroot/frontierkernel/odbs/mainResponderRoot/mainResponder/background In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2974 Modified Files: nightlyUpdates Log Message: removed Manila references Index: nightlyUpdates =================================================================== RCS file: /cvsroot/frontierkernel/odbs/mainResponderRoot/mainResponder/background/nightlyUpdates,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** nightlyUpdates 26 Mar 2005 21:45:20 -0000 1.1.1.1 --- nightlyUpdates 25 Dec 2005 01:47:35 -0000 1.2 *************** *** 1,3 **** FrontierVcsFile:1:scpt:mainResponder.background.nightlyUpdates ! ÇChanges: Ç12/17/03; 1:30:50 AM by JES ÇChanged to send email notification of new features (if enabled), instead of actually downloading them. Email notification is sent only when new updates are available, of which the user has not yet been notified. Ç04/27/00; 2:21:07 PM by PBS ÇUpdate all the databases that should be updated every night. Uncoupled from mainResponder.background.everyNight -- this script now runs at its own time, since there was the issue of competing updates when doing root updates at 11 or 12 every night. if config.mainResponder.prefs.flUpdateNightly { //send notification of new updates to the sysadmin local (dbsToUpdate = {"Frontier", "mainResponder", "manila", "prefs"}); if not defined (config.mainresponder.stats.whenLastUpdatesNotification) { config.mainresponder.stats.whenLastUpdatesNotification = date (0)}; rootUpdates.getPendingUpdatesList (@config.mainResponder.stats, mainResponder.data.featureListRssUrl, dbsToUpdate); if sizeOf (config.mainResponder.stats.pendingUpdates) > 0 { //build and send the email local (mtext = ""); on add (s) { mtext = mtext + (s + "\r\n");}; local (ctupdates = sizeOf (config.mainResponder.stats.pendingUpdates), i); if date (config.mainresponder.stats.pendingUpdates[ctupdates].data.pubdate) > config.mainresponder.stats.whenLastUpdatesNotification { local (host = tcp.dns.getMyDomainName ()); local (port = user.inetd.config.http2.port); host = host + ":" + port; bundle { //HTML version bundle { //header text add ("<p>There are " + ctupdates + " new Manila updates available. To download and install the updates, click <a href=\"http://" + host + mainResponder.adminSite.urls.updates + "\">here</a>, and then click the Update Now button.</p>"); add ("<hr size=\"1\" width=\"100%\">")}; add (string.replaceAll (rootUpdates.listPendingUpdates (@config.mainResponder.stats), "\r", "\r\n")); tcp.sendMail (user.prefs.mailAddress, ctupdates + " New Manila Updates Available", mtext, user.prefs.mailAddress, mimeType:"text/html"); config.mainresponder.stats.whenLastUpdatesNotification = clock.now ()}}}; Çbundle //old code ÇrootUpdates.threadedMultiRootUpdate (config.mainResponder.prefs.updateNightlyList)} \ No newline at end of file --- 1,3 ---- FrontierVcsFile:1:scpt:mainResponder.background.nightlyUpdates ! ÇChanges Ç12/24/05; 12:03:36 PM by TAC Çremoved Manila references Ç12/17/03; 1:30:50 AM by JES ÇChanged to send email notification of new features (if enabled), instead of actually downloading them. Email notification is sent only when new updates are available, of which the user has not yet been notified. Ç04/27/00; 2:21:07 PM by PBS ÇUpdate all the databases that should be updated every night. Uncoupled from mainResponder.background.everyNight -- this script now runs at its own time, since there was the issue of competing updates when doing root updates at 11 or 12 every night. if config.mainResponder.prefs.flUpdateNightly { //send notification of new updates to the sysadmin local (dbsToUpdate = {"Frontier", "mainResponder", "prefs"}); if not defined (config.mainresponder.stats.whenLastUpdatesNotification) { config.mainresponder.stats.whenLastUpdatesNotification = date (0)}; rootUpdates.getPendingUpdatesList (@config.mainResponder.stats, mainResponder.data.featureListRssUrl, dbsToUpdate); if sizeOf (config.mainResponder.stats.pendingUpdates) > 0 { //build and send the email local (mtext = ""); on add (s) { mtext = mtext + (s + "\r\n");}; local (ctupdates = sizeOf (config.mainResponder.stats.pendingUpdates), i); if date (config.mainresponder.stats.pendingUpdates[ctupdates].data.pubdate) > config.mainresponder.stats.whenLastUpdatesNotification { local (host = tcp.dns.getMyDomainName ()); local (port = user.inetd.config.http2.port); host = host + ":" + port; bundle { //HTML version bundle { //header text add ("<p>There are " + ctupdates + " new updates available. To download and install the updates, click <a href=\"http://" + host + mainResponder.adminSite.urls.updates + "\">here</a>, and then click the Update Now button.</p>"); add ("<hr size=\"1\" width=\"100%\">")}; add (string.replaceAll (rootUpdates.listPendingUpdates (@config.mainResponder.stats), "\r", "\r\n")); tcp.sendMail (user.prefs.mailAddress, ctupdates + " New Updates Available", mtext, user.prefs.mailAddress, mimeType:"text/html"); config.mainresponder.stats.whenLastUpdatesNotification = clock.now ()}}}; Çbundle //old code ÇrootUpdates.threadedMultiRootUpdate (config.mainResponder.prefs.updateNightlyList)}} \ No newline at end of file |