Example #1
0
def install() :
  debugOutput("Installing")
  if apt.isInstalled("php4") :
    debugOutput("php4 is installed")

  interface.updateProgress("Install php4")

  apt.install("php4 libapache2-mod-php4 php4-mysql")

  configure()
Example #2
0
def install() :
  debugOutput("Installing")
  if apt.isInstalled("mysql-server") :
    debugOutput("mysql is installed")
  
  interface.updateProgress("Installing mysql (this takes a while!)")
  
  apt.install("mysql-server")

  configure()
Example #3
0
def install() :
  debugOutput("Installing")
  if apt.isInstalled("apache2") :
    debugOutput("apache2 is installed")

  interface.updateProgress("Installing apache2")
    
  apt.install("apache2")

  # Enable mod_proxy.
  system.run("a2enmod proxy", exitOnFail=False)
  system.run("a2enmod proxy_http", exitOnFail=False)

  # Disable default apache site.
  setSiteEnabled("default",False)
Example #4
0
def isInstalled() :
  for app in APPS :
    if not apt.isInstalled(app) :
      return False
  return True