diff -Nur smeserver-wordpress-1.0/createlinks smeserver-wordpress-1.0.new/createlinks --- smeserver-wordpress-1.0/createlinks 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-wordpress-1.0.new/createlinks 2013-10-27 14:45:57.000000000 -0400 @@ -0,0 +1,15 @@ +#!/usr/bin/perl -w + +use esmith::Build::CreateLinks qw(:all); + +#################### +# links to add + +# templates to expand + templates2events( "/etc/wordpress/wp-config.php" , qw( conf-wordpress bootstrap-console-save post-upgrade) ); + templates2events( "/etc/e-smith/sql/init/80wordpress" , qw( conf-wordpress bootstrap-console-save post-upgrade) ); + templates2events( "/etc/httpd/conf/httpd.conf", "conf-wordpress" ); + +# services to launch on event + safe_symlink("sigusr1", "root/etc/e-smith/events/conf-wordpress/services2adjust/httpd-e-smith"); + safe_symlink("restart", "root/etc/e-smith/events/conf-wordpress/services2adjust/mysql.init"); diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/db/accounts/defaults/wordpress/type smeserver-wordpress-1.0.new/root/etc/e-smith/db/accounts/defaults/wordpress/type --- smeserver-wordpress-1.0/root/etc/e-smith/db/accounts/defaults/wordpress/type 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/db/accounts/defaults/wordpress/type 2013-10-27 14:22:18.000000000 -0400 @@ -0,0 +1 @@ +reserved diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/DbName smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/DbName --- smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/DbName 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/DbName 2013-10-27 14:22:18.000000000 -0400 @@ -0,0 +1 @@ +wordpress diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/DbUser smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/DbUser --- smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/DbUser 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/DbUser 2013-10-27 14:22:18.000000000 -0400 @@ -0,0 +1 @@ +wordpress diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/Name smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/Name --- smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/Name 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/Name 2013-10-27 14:22:18.000000000 -0400 @@ -0,0 +1 @@ +Wordpress weblog diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess --- smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess 2013-10-27 14:22:18.000000000 -0400 @@ -0,0 +1 @@ +global diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/status smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/status --- smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/status 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/status 2013-10-27 14:22:18.000000000 -0400 @@ -0,0 +1 @@ +enabled diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/WpLang smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/WpLang --- smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/WpLang 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/WpLang 2013-10-27 14:22:18.000000000 -0400 @@ -0,0 +1 @@ +en diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress --- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress 2013-10-27 17:07:38.000000000 -0400 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress 2013-10-27 17:15:04.000000000 -0400 @@ -55,15 +55,15 @@ { if (exists $wordpress{'URL'}) - { $OUT .= "Alias /$wordpress{'URL'} /opt/wordpress\n"; } + { $OUT .= "Alias /$wordpress{'URL'} /usr/share/wordpress\n"; } } - $OUT .= "Alias /wordpress /opt/wordpress\n"; + $OUT .= "Alias /wordpress /usr/share/wordpress\n"; $OUT .= "\n"; - $OUT .= "\n"; + $OUT .= "\n"; $OUT .= " AddType application/x-httpd-php .php\n"; - $OUT .= " php_admin_value open_basedir /opt/wordpress\n"; + $OUT .= " php_admin_value open_basedir /usr/share/wordpress:/etc/wordpress:/tmp/:/usr/share/pear\n"; $OUT .= " Options None\n"; $OUT .= " order deny,allow\n"; $OUT .= " deny from all\n"; diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db --- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db 2007-07-06 05:30:02.000000000 -0400 @@ -0,0 +1,6 @@ +{ + $OUT .= "define('DB_NAME', \'$wordpress{DbName}\'); \n"; + $OUT .= "define('DB_USER', \'$wordpress{DbUser}\'); \n"; + $OUT .= "define('DB_PASSWORD', \'$wordpress{DbPassword}\'); \n"; + $OUT .= "define('DB_HOST', \'localhost\'); \n"; +} \ Pas de fin de ligne à la fin du fichier. diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist --- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist 2007-07-06 02:35:58.000000000 -0400 @@ -0,0 +1,3 @@ +{ + $OUT = "require_once('wp-config-sample.php');"; +} diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/template-begin smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/wordpress/wp-config.php/template-begin --- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/template-begin 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/wordpress/wp-config.php/template-begin 2003-03-17 15:00:58.000000000 -0500 @@ -0,0 +1,14 @@ +{ + $OUT = < diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/opt/wordpress/wp-config.php/10db smeserver-wordpress-1.0.new/root/etc/e-smith/templates/opt/wordpress/wp-config.php/10db --- smeserver-wordpress-1.0/root/etc/e-smith/templates/opt/wordpress/wp-config.php/10db 2007-07-06 05:30:02.000000000 -0400 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/opt/wordpress/wp-config.php/10db 1969-12-31 19:00:00.000000000 -0500 @@ -1,6 +0,0 @@ -{ - $OUT .= "define('DB_NAME', \'$wordpress{DbName}\'); \n"; - $OUT .= "define('DB_USER', \'$wordpress{DbUser}\'); \n"; - $OUT .= "define('DB_PASSWORD', \'$wordpress{DbPassword}\'); \n"; - $OUT .= "define('WPLANG', \'$wordpress{WpLang}\'); \n"; -} \ Pas de fin de ligne à la fin du fichier. diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/opt/wordpress/wp-config.php/20inc_dist smeserver-wordpress-1.0.new/root/etc/e-smith/templates/opt/wordpress/wp-config.php/20inc_dist --- smeserver-wordpress-1.0/root/etc/e-smith/templates/opt/wordpress/wp-config.php/20inc_dist 2007-07-06 02:35:58.000000000 -0400 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/opt/wordpress/wp-config.php/20inc_dist 1969-12-31 19:00:00.000000000 -0500 @@ -1,3 +0,0 @@ -{ - $OUT = "require_once('wp-config-sample.php');"; -} diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/opt/wordpress/wp-config.php/template-begin smeserver-wordpress-1.0.new/root/etc/e-smith/templates/opt/wordpress/wp-config.php/template-begin --- smeserver-wordpress-1.0/root/etc/e-smith/templates/opt/wordpress/wp-config.php/template-begin 2003-03-17 15:00:58.000000000 -0500 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/opt/wordpress/wp-config.php/template-begin 1969-12-31 19:00:00.000000000 -0500 @@ -1,14 +0,0 @@ -{ - $OUT = < diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress smeserver-wordpress-1.0.new/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress --- smeserver-wordpress-1.0/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress 2013-10-27 14:22:18.000000000 -0400 @@ -0,0 +1 @@ +PERMS=0750 diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates.metadata/etc/wordpress/wp-config.php smeserver-wordpress-1.0.new/root/etc/e-smith/templates.metadata/etc/wordpress/wp-config.php --- smeserver-wordpress-1.0/root/etc/e-smith/templates.metadata/etc/wordpress/wp-config.php 1969-12-31 19:00:00.000000000 -0500 +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates.metadata/etc/wordpress/wp-config.php 2013-10-27 14:39:00.000000000 -0400 @@ -0,0 +1,3 @@ +UID="root" +GID="root" +PERMS=0644