From 3acb4d0c1258d6edf39bb2d48a1b05d0996d6693 Mon Sep 17 00:00:00 2001 From: Ladislau Date: Thu, 20 Oct 2016 09:05:52 -0300 Subject: [PATCH 1/4] =?UTF-8?q?Pequena=20corre=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1eb641a..68980b9 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Script para configuração do apache2 $ sudo php configure-apache.php {name} {path} {?domain} ``` -exemple: +Example: ``` $ sudo php configure-apache.php exemplo /home/denissonleal/exemplo leal.app ``` From 14b5dc45c336a2745bbbeb61bab89da08b03f2e2 Mon Sep 17 00:00:00 2001 From: Ladislau Date: Thu, 20 Oct 2016 09:06:26 -0300 Subject: [PATCH 2/4] Drupal Coding Standards --- configure-apache.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/configure-apache.php b/configure-apache.php index 9693e71..8edc210 100644 --- a/configure-apache.php +++ b/configure-apache.php @@ -1,18 +1,25 @@ - ErrorLog /tmp/$name.log CustomLog /tmp/$name.log combined From 6ed59583f666efecb64154e30bf1606226309e84 Mon Sep 17 00:00:00 2001 From: Ladislau Date: Mon, 24 Oct 2016 23:19:55 -0300 Subject: [PATCH 3/4] Modifica nome do arquivo criado --- configure-apache.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configure-apache.php b/configure-apache.php index 8edc210..1dc0f35 100644 --- a/configure-apache.php +++ b/configure-apache.php @@ -1,7 +1,5 @@ Date: Mon, 24 Oct 2016 23:23:13 -0300 Subject: [PATCH 4/4] Habilita o arquivo correto --- configure-apache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure-apache.php b/configure-apache.php index 1dc0f35..9181239 100644 --- a/configure-apache.php +++ b/configure-apache.php @@ -61,7 +61,7 @@ exec("ln -s $path $link"); exec("a2enmod rewrite"); - exec("a2ensite $name.conf"); + exec("a2ensite $domain.conf"); exec("service apache2 restart"); file_put_contents("/etc/hosts", "\n127.0.0.1 $domain\n", FILE_APPEND);