Sha256: b8a70edb8ee2af5bfa7ce07834e6e9c3d40d51b09f629b5f407dce508bc85a5e

Contents?: true

Size: 499 Bytes

Versions: 2

Compression:

Stored size: 499 Bytes

Contents

#!/bin/bash

name=$1
conf_template=$2
conffile=$3
url=$4
app_root=$5


function configure_apache {

  cp -p $conf_template $conffile
  sed_str=$(echo $app_root | sed -e 's/\(\/\|\\\|&\)/\\&/g')
  sed -i "s/PROJECT_ROOT/$sed_str/g" $conffile
  sed -i "s/URL/$url/g" $conffile

  echo ""
  echo "Apache VirtualHost Konfiguration unter: $conffile"
  echo "App Root unter: $app_root"
  echo "URL: http://$url"


  echo "Apache reload"
  sudo service apache2 reload 2>&1 > /dev/null 
}

configure_apache

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
citrin-0.0.10 commands/create_webserver
citrin-0.0.9 commands/create_webserver