diff -urN smeserver-wordpress-1.2.old/createlinks smeserver-wordpress-1.2/createlinks --- smeserver-wordpress-1.2.old/createlinks 2015-02-10 08:27:41.000000000 +0000 +++ smeserver-wordpress-1.2/createlinks 2021-03-07 10:52:34.204917921 +0000 @@ -2,6 +2,30 @@ use esmith::Build::CreateLinks qw(:all); +# our event specific for updating with yum without reboot +$event = "smeserver-wordpress-update"; #not needed, but here for completion and edification! +#add here the path to your templates needed to expand +#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event +# Not needed if no task to be started. +# +#foreach my $file (qw( +# #/etc/systemd/system-preset/49-koozali.preset +# +#)) +#{ +# templates2events( $file, $event ); +#} +# +#action needed in case we have a systemd unit +#event_link("systemd-default", $event, "10"); +#event_link("systemd-reload", $event, "50"); + +#action specific to this package +#event_link("wordpress-update", $event, "30"); +#services we need to restart +#safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); +#safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mysql.init"); + #################### # links to add @@ -11,6 +35,7 @@ console-save conf-wordpress wordpress-update +smeserver-wordpress-update )) { templates2events( "/etc/wordpress/wp-config.php" , $event ); @@ -21,6 +46,7 @@ for my $event (qw( conf-wordpress wordpress-update +smeserver-wordpress-update )) { templates2events( "/etc/httpd/conf/httpd.conf", $event ); @@ -31,9 +57,10 @@ for my $event (qw( conf-wordpress wordpress-update +smeserver-wordpress-update )) { - safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); + safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mysql.init"); } @@ -43,6 +70,7 @@ console-save conf-wordpress wordpress-update +smeserver-wordpress-update )) { safe_symlink("../actions/wordpress", "root/etc/e-smith/events/$event/20wordpress"); diff -urN smeserver-wordpress-1.2.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress smeserver-wordpress-1.2/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress --- smeserver-wordpress-1.2.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress 2021-03-06 07:40:35.017795130 +0000 +++ smeserver-wordpress-1.2/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress 2021-03-07 07:37:07.772466275 +0000 @@ -64,8 +64,15 @@ $OUT .= "\n"; $OUT .= "\n"; + +$version = "73"; +$OUT .= "\n"; +$OUT .= "SetHandler \"proxy:unix:/var/run/php-fpm/php$version.sock|fcgi://localhost\"\n"; +$OUT .= "\n"; + + $OUT .= " AddType application/x-httpd-php .php\n"; - $OUT .= " php_admin_value open_basedir /usr/share/wordpress:/etc/wordpress:/tmp/:/usr/share/pear:/usr/share/php/\n"; + $OUT .= " #php_admin_value open_basedir /usr/share/wordpress:/etc/wordpress:/tmp/:/usr/share/pear:/usr/share/php/\n"; $OUT .= " Options "; $OUT .= " FollowSymLinks " if ( ($wordpress{'SymLinks'} || 'disabled') eq 'enabled'); $OUT .= " Indexes " if ( ($wordpress{'Indexes'} || 'disabled') eq 'enabled'); @@ -74,10 +81,10 @@ $OUT .= "\n order deny,allow\n"; $OUT .= " deny from all\n"; $OUT .= " allow from $allow\n"; - $OUT .= " php_value mysql.default_host $wordpress{DbName}\n"; - $OUT .= " php_value mysql.default_user $wordpress{DbUser}\n"; - $OUT .= " php_value mysql.default_password $wordpress{DbPassword}\n"; - $OUT .= " php_admin_value upload_tmp_dir /tmp\n"; + $OUT .= " #php_value mysql.default_host $wordpress{DbName}\n"; + $OUT .= " #php_value mysql.default_user $wordpress{DbUser}\n"; + $OUT .= " #php_value mysql.default_password $wordpress{DbPassword}\n"; + $OUT .= " #php_admin_value upload_tmp_dir /tmp\n"; if ($pass) { $OUT .= " AuthName \"$name\"\n";