From 35f945ae52514da222908119d80a7fcc8f2f95bc Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Fri, 7 Dec 2012 13:42:51 +0000 Subject: [PATCH] Add path for wkhtlm executable --- scripts/build/config/development/application.ini | 2 ++ scripts/build/config/ns359466.ovh.net/application.ini | 2 ++ scripts/build/config/sd-13408/application.ini | 2 ++ scripts/build/config/sdsrvdev01/application.ini | 2 ++ scripts/build/configure.php | 10 +++++++++- 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/build/config/development/application.ini b/scripts/build/config/development/application.ini index dddf54787..9cdbcc1a6 100644 --- a/scripts/build/config/development/application.ini +++ b/scripts/build/config/development/application.ini @@ -21,6 +21,7 @@ autoloaderNamespaces[] = "Application_" autoloaderNamespaces[] = "Form_" autoloaderNamespaces[] = "Scores_" +; Scores configuration profil.server.name = development profil.webservice.location = sdsrvdev01 profil.mail.method = smtp @@ -33,6 +34,7 @@ profil.path.cache = APPLICATION_PATH "/../data/cache" profil.path.files = APPLICATION_PATH "/../data/files" profil.path.pages = APPLICATION_PATH "/../data/pages" profil.path.data = "/your/path/" +profil.wkhtmltopdf.path = "c:\Users\mricois\www\data\wkhtml" profil.wkhtmltopdf.arch = "amd64" profil.db.sdv1.adapter=mysqli profil.db.sdv1.params.host=127.0.0.1 diff --git a/scripts/build/config/ns359466.ovh.net/application.ini b/scripts/build/config/ns359466.ovh.net/application.ini index a3feb5bfe..0bf525655 100644 --- a/scripts/build/config/ns359466.ovh.net/application.ini +++ b/scripts/build/config/ns359466.ovh.net/application.ini @@ -21,6 +21,7 @@ autoloaderNamespaces[] = "Application_" autoloaderNamespaces[] = "Form_" autoloaderNamespaces[] = "Scores_" +; Scores configuration profil.server.name = ns359466 profil.webservice.location = celeste profil.mail.method = sendmail @@ -33,6 +34,7 @@ profil.path.cache = APPLICATION_PATH "/../data/cache" profil.path.files = APPLICATION_PATH "/../data/files" profil.path.pages = APPLICATION_PATH "/../data/pages" profil.path.data = "/home/vhosts/data" +profil.wkhtmltopdf.path = "/home/vhosts/data/wkhtml" profil.wkhtmltopdf.arch = "amd64" profil.db.sdv1.adapter=mysqli profil.db.sdv1.params.host=127.0.0.1 diff --git a/scripts/build/config/sd-13408/application.ini b/scripts/build/config/sd-13408/application.ini index 3d1f2ca31..106997625 100644 --- a/scripts/build/config/sd-13408/application.ini +++ b/scripts/build/config/sd-13408/application.ini @@ -21,6 +21,7 @@ autoloaderNamespaces[] = "Application_" autoloaderNamespaces[] = "Form_" autoloaderNamespaces[] = "Scores_" +; Scores configuration profil.server.name = sd-13408 profil.webservice.location = celeste profil.mail.method = sendmail @@ -33,6 +34,7 @@ profil.path.cache = APPLICATION_PATH "/../data/cache" profil.path.files = APPLICATION_PATH "/../data/files" profil.path.pages = APPLICATION_PATH "/../data/pages" profil.path.data = "/var/www/data" +profil.wkhtmltopdf.path = "/var/www/data/wkhtml" profil.wkhtmltopdf.arch = "i386" profil.db.sdv1.adapter=mysqli profil.db.sdv1.params.host=localhost diff --git a/scripts/build/config/sdsrvdev01/application.ini b/scripts/build/config/sdsrvdev01/application.ini index 073a922d4..69b91d8dd 100644 --- a/scripts/build/config/sdsrvdev01/application.ini +++ b/scripts/build/config/sdsrvdev01/application.ini @@ -21,6 +21,7 @@ autoloaderNamespaces[] = "Application_" autoloaderNamespaces[] = "Form_" autoloaderNamespaces[] = "Scores_" +; Scores configuration profil.server.name = sdsrvdev01 profil.webservice.location = sdsrvdev01 profil.mail.method = smtp @@ -33,6 +34,7 @@ profil.path.cache = APPLICATION_PATH "/../data/cache" profil.path.files = APPLICATION_PATH "/../data/files" profil.path.pages = APPLICATION_PATH "/../data/pages" profil.path.data = "/sites/data" +profil.wkhtmltopdf.path = "/sites/data/wkhtml" profil.wkhtmltopdf.arch = "amd64" profil.db.sdv1.adapter=mysqli profil.db.sdv1.params.host=127.0.0.1 diff --git a/scripts/build/configure.php b/scripts/build/configure.php index 49dafd0b6..3e4b0e1b8 100644 --- a/scripts/build/configure.php +++ b/scripts/build/configure.php @@ -64,7 +64,15 @@ if(isset($opts->check)) } elseif(isset($opts->install)) { - + //Create data directory and all his children + mkdir(APPLICATION_PATH.'/../data'); + mkdir(APPLICATION_PATH.'/../data/cache'); + mkdir(APPLICATION_PATH.'/../data/files'); + mkdir(APPLICATION_PATH.'/../data/infogreffe'); + mkdir(APPLICATION_PATH.'/../data/log'); + mkdir(APPLICATION_PATH.'/../data/rss'); + mkdir(APPLICATION_PATH.'/../data/sessions'); + //Modification des permissions passthru('chown -R www-data: '.APPLICATION_PATH.'/../');