Beispiel #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()
Beispiel #2
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()
Beispiel #3
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()
Beispiel #4
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()
Beispiel #5
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)
Beispiel #6
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)
Beispiel #7
0
def isInstalled() :
  for app in APPS :
    if not apt.isInstalled(app) :
      return False
  return True