Skip to content

Commit

Permalink
master Fixed a number of issues with install
Browse files Browse the repository at this point in the history
  • Loading branch information
msmith-techempower committed Mar 25, 2014
1 parent f48b814 commit 4eeb803
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
11 changes: 8 additions & 3 deletions nawak/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ def start(args, logfile, errfile):
return 0

def stop(logfile, errfile):
subprocess.check_call("sudo m2sh stop -every", shell=True, cwd="nawak/conf", stderr=errfile, stdout=logfile)
ret = 0

try:
subprocess.check_call("sudo m2sh stop -every", shell=True, cwd="nawak/conf", stderr=errfile, stdout=logfile)
except:
ret = 1

p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
out, err = p.communicate()
Expand All @@ -32,6 +37,6 @@ def stop(logfile, errfile):
pid = int(line.split(None, 2)[1])
os.kill(pid, 15)
except OSError:
pass
ret = 1

return 0
return ret
6 changes: 3 additions & 3 deletions toolset/setup/linux/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ def __install_server_software(self):
#
self.__download("https://github.com/plt/racket/archive/v5.3.6.tar.gz", "racket-5.3.6.tar.gz")
self.__run_command("tar xzf racket-5.3.6.tar.gz")
self.__run_command("./configure", cwd="racket/src")
self.__run_command("make", cwd="racket/src")
self.__run_command("sudo make install", cwd="racket/src")
self.__run_command("./configure", cwd="racket-5.3.6/src")
self.__run_command("make", cwd="racket-5.3.6/src")
self.__run_command("sudo make install", cwd="racket-5.3.6/src")

#
# Ur/Web
Expand Down
8 changes: 4 additions & 4 deletions toolset/setup/windows/installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ $python_version = "27"
$wincache_installer_file = "wincache-1.3.4-5.4-nts-vc9-x86.exe"
$wincache_installer_path = "wincache-1.3.4/$wincache_installer_file"
$go_installer_file = "go1.2.windows-amd64.msi"
$jre_installer_file = "jre-7u25-windows-x64.exe"
$jdk_installer_file = "jdk-7u45-windows-x64.exe"
$jdk_master_hash = "943527ed9111cbb746d4ab2bb2c31cd6"
$jre_installer_file = "jre-7u51-windows-x64.exe"
$jdk_installer_file = "jdk-7u51-windows-x64.exe"
$jdk_master_hash = "d1367410be659f1b47e554e7bd011ea0"
# http://www.oracle.com/technetwork/java/javase/downloads/java-se-binaries-checksum-1956892.html
$resin_version = "resin-4.0.36"
$resin_installer_file = "$resin_version.zip"
Expand Down Expand Up @@ -337,4 +337,4 @@ $cygwin_install_dir = "C:\Cygwin"
Start-Process $cygwin_installer_local "-q -n -l $cygwin_installer_dir -s http://mirrors.kernel.org/sourceware/cygwin/ -R $cygwin_install_dir -P openssh" -WorkingDirectory "$cygwin_installer_dir" -Wait -RedirectStandardOutput $cygwin_installer_dir\install.log
$env:Path += ";$cygwin_install_dir;$cygwin_install_dir\bin"; [Environment]::SetEnvironmentVariable("Path", $env:Path, [System.EnvironmentVariableTarget]::Machine)

cd $basedir
cd $basedir

0 comments on commit 4eeb803

Please sign in to comment.