diff -Nur smeserver-wordpress-1.0.old/createlinks smeserver-wordpress-1.0/createlinks --- smeserver-wordpress-1.0.old/createlinks 2014-09-02 22:45:55.776797222 +0200 +++ smeserver-wordpress-1.0/createlinks 2014-09-02 22:46:48.180457346 +0200 @@ -6,8 +6,8 @@ # 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/wordpress/wp-config.php" , qw( conf-wordpress bootstrap-console-save post-upgrade console-save) ); + templates2events( "/etc/e-smith/sql/init/80wordpress" , qw( conf-wordpress bootstrap-console-save post-upgrade console-save) ); templates2events( "/etc/httpd/conf/httpd.conf", "conf-wordpress" ); # services to launch on event @@ -16,4 +16,6 @@ # actions to perform safe_symlink("../actions/wordpress", "root/etc/e-smith/events/conf-wordpress/20wordpress"); - safe_symlink("../actions/wordpress", "root/etc/e-smith/events/bootstrap-console-save/20wordpress"); \ Pas de fin de ligne à la fin du fichier. + safe_symlink("../actions/wordpress", "root/etc/e-smith/events/bootstrap-console-save/20wordpress"); + safe_symlink("../actions/wordpress", "root/etc/e-smith/events/console-save/20wordpress"); + diff -Nur smeserver-wordpress-1.0.old/root/etc/e-smith/events/actions/wordpress smeserver-wordpress-1.0/root/etc/e-smith/events/actions/wordpress --- smeserver-wordpress-1.0.old/root/etc/e-smith/events/actions/wordpress 2014-09-02 22:45:55.773796826 +0200 +++ smeserver-wordpress-1.0/root/etc/e-smith/events/actions/wordpress 2014-09-02 22:47:03.892454665 +0200 @@ -1,4 +1,5 @@ #!/usr/bin/perl system('chown www:root -R /usr/share/wordpress'); +system('chown www:root /etc/wordpress'); diff -Nur smeserver-wordpress-1.0.old/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 --- smeserver-wordpress-1.0.old/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist 2014-09-02 22:45:55.775797090 +0200 +++ smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist 2014-09-02 22:47:03.918457975 +0200 @@ -8,8 +8,8 @@ * @since 2.6.0 */ { -my $pw=$wordpress{'phrase'} ||""; - if ( $pw ne "" ) +my $pw=$wordpress{'Salt'} || "disabled"; + if ( $pw eq "enabled" ) { if ( open( RANDOM, "/dev/urandom" ) ) { @@ -22,7 +22,8 @@ } else { - $pw = encode_base64($buf); + use MIME::Base64 qw(encode_base64); + $pw = encode_base64($buf); chomp $pw; } close RANDOM; diff -Nur smeserver-wordpress-1.0.old/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 --- smeserver-wordpress-1.0.old/root/etc/e-smith/templates.metadata/etc/wordpress/wp-config.php 2014-09-02 22:45:55.776797222 +0200 +++ smeserver-wordpress-1.0/root/etc/e-smith/templates.metadata/etc/wordpress/wp-config.php 2014-09-02 22:47:03.920458231 +0200 @@ -1,3 +1,3 @@ UID="root" -GID="root" -PERMS=0644 +GID="www" +PERMS=0640