diff -urN smeserver-dl-0.2.3.old/createlinks smeserver-dl-0.2.3/createlinks --- smeserver-dl-0.2.3.old/createlinks 2018-01-21 09:12:21.000000000 +0000 +++ smeserver-dl-0.2.3/createlinks 2021-04-19 08:55:10.718189594 +0100 @@ -1,10 +1,30 @@ #!/usr/bin/perl -w +use esmith::Build::CreateLinks qw(:all); +# our event specific for updating with yum without reboot +$event = 'smeserver-dl-update'; +#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 + +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('action', $event, '30'); +#services we need to restart +#safe_symlink('restart',root/etc/e-smith/events/$event/services2adjust/service); +#and Server Manager panel link +#panel_link('somefunction', 'manager'); -use esmith::Build::CreateLinks qw(:all); # Templates to expand -templates2events("/etc/dl.php", qw(bootstrap-console-save webapps-update)); -templates2events("/etc/e-smith/sql/init/dl", qw(bootstrap-console-save webapps-update)); +templates2events("/etc/dl.php", qw(smeserver-dl-update bootstrap-console-save webapps-update)); +templates2events("/etc/e-smith/sql/init/dl", qw(smeserver-dl-update bootstrap-console-save webapps-update)); # PHP header and footer safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/dl.php/template-begin"); diff -urN smeserver-dl-0.2.3.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Dl smeserver-dl-0.2.3/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Dl --- smeserver-dl-0.2.3.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Dl 2018-01-21 09:12:21.000000000 +0000 +++ smeserver-dl-0.2.3/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Dl 2021-04-19 08:57:59.061849792 +0100 @@ -25,17 +25,22 @@ my $php =<<_EOF; AddType application/x-httpd-php .php - php_admin_flag file_uploads On - php_admin_flag magic_quotes Off - php_admin_flag magic_quotes_gpc Off - php_admin_value upload_max_filesize $maxupload - php_admin_value post_max_size $maxpost - php_admin_value memory_limit 100M - php_admin_flag output_buffering Off - php_admin_value max_execution_time 0 - php_admin_value upload_tmp_dir /var/lib/dl/tmp - php_admin_value session.save_path /var/lib/dl/tmp - php_admin_value session.gc_maxlifetime 86400 + + + SetHandler "proxy:unix:/var/run/php-fpm/php74.sock|fcgi://localhost" + + + #php_admin_flag file_uploads On + #php_admin_flag magic_quotes Off + #php_admin_flag magic_quotes_gpc Off + #php_admin_value upload_max_filesize $maxupload + #php_admin_value post_max_size $maxpost + #php_admin_value memory_limit 100M + #php_admin_flag output_buffering Off + #php_admin_value max_execution_time 0 + #php_admin_value upload_tmp_dir /var/lib/dl/tmp + #php_admin_value session.save_path /var/lib/dl/tmp + #php_admin_value session.gc_maxlifetime 86400 _EOF if ($fastcgi_mod eq 'mod_fastcgi'){ $php = " AddHandler phpdl-fastcgi .php\n";