Permalink
Browse files

2012-03-02_03-53-57

  • Loading branch information...
1 parent 06b0549 commit 8fbc5f584d9802e41e58dbf955172fa542ab896d @camerb committed Mar 2, 2012
Showing with 17 additions and 4 deletions.
  1. BIN Lynx-Install.exe
  2. +12 −1 Lynx-ProcedureParts.ahk
  3. +3 −2 Lynx-Upgrade.ahk
  4. +1 −0 Lynx-UpgradeParts.ahk
  5. +1 −1 cliprun.ahk
View
Binary file not shown.
View
@@ -11,16 +11,27 @@ BannerDotPlx()
delog("", "finished function", A_ThisFunc)
}
-;TODO run checkdb again (automated), pipe to log
CheckDb()
{
delog("", "started function", A_ThisFunc)
+ lockfile := "C:\inetpub\wwwroot\cgi\update.lck"
+
+ ;do the checkdb
ret := CmdRet_Perl("checkdb.plx")
RestartService("apache2.2")
len := strlen(ret)
msg=Ran checkdb and the strlen of the checkdb was %len%
+
+ if FileExist(lockfile)
+ {
+ lynx_error("Lockfile was present after a checkdb")
+ ret .= "`n`nLOCKFILE WAS PRESENT AFTER THE CHECKDB"
+ ;FileDelete(lockfile)
+ }
+
FileAppendLine(msg, GetPath("logfile")) ;log abbreviated message
FileAppendLine(ret, GetPath("checkdb-logfile")) ;log full message to separate log
+
delog("", "finished function", A_ThisFunc)
}
View
@@ -8,24 +8,24 @@ Lynx_MaintenanceType := "upgrade"
;Beginning of the actual upgrade procedure
notify("Starting Upgrade of the LynxGuide server")
SendStartMaintenanceEmail()
+msg("Check to make sure you have a green messenger icon. If not, Inform level 2 support.")
TestScriptAbilities()
RunTaskManagerMinimized()
LynxOldVersion:=GetLynxVersion()
LynxDestinationVersion := GetLatestLynxVersion()
msg("Attempting an upgrade from Lynx Version: " . LynxOldVersion . " to " . LynxDestinationVersion)
+CreateSmsKey()
PerlUpgradeNeeded:=IsPerlUpgradeNeeded()
ApacheUpgradeNeeded:=IsApacheUpgradeNeeded()
DownloadAllLynxFilesForUpgrade()
;TODO get client information and insert it into the database (if empty)
; log the info as well
-CreateSmsKey()
CheckDatabaseFileSize()
GetServerSpecs()
GetClientInfo()
-InstallSmsKey()
BackupLynxDatabase("BeforeUpdate")
notify("Start of Downtime", "Turning the LynxGuide Server off, in order to perform the upgrade")
@@ -57,6 +57,7 @@ CheckDb()
msg("(Admin Panel > Change system settings > File system locations and logging):`n`nChange logging to extensive, log age to yearly, message age to never, and log size to 500MB. Save your changes.")
msg("Ask the customer if they have a public subscription page`n`nIf not: Under Home Page and Subscriber Setup, change the home page to no_subscription.htm")
msg("Under back up system, set file system backups quarterly and database backups weekly")
+InstallSmsKey()
;security login (web interface)
;TODO pull password out of DB and open lynx interface automatically
View
@@ -226,6 +226,7 @@ UpgradeApacheIfNeeded()
lynx_error("Install new apache")
;TODO wait for the finished page of the installer
}
+ CmdRet_RunReturn("net stop apache2.2")
delog("", "finished function", A_ThisFunc)
}
View
@@ -1,5 +1,5 @@
#include FcnLib.ahk
-2668598
+processclose("opera.exe")
~esc::ExitApp

0 comments on commit 8fbc5f5

Please sign in to comment.