/[smecontribs]/rpms/smeserver-phpki-ng/contribs10/smeserver-phpki-ng-0.3-bz11438-takey.patch
ViewVC logotype

Contents of /rpms/smeserver-phpki-ng/contribs10/smeserver-phpki-ng-0.3-bz11438-takey.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Fri Nov 18 19:25:17 2022 UTC (23 months, 2 weeks ago) by jpp
Branch: MAIN
CVS Tags: smeserver-phpki-ng-0_3-11_el7_sme
* Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.3-11.sme
- fix missing takey [SME: 11438]

1 diff -Nur --no-dereference smeserver-phpki-ng-0.3.old/createlinks smeserver-phpki-ng-0.3/createlinks
2 --- smeserver-phpki-ng-0.3.old/createlinks 2022-11-18 14:02:45.809000000 -0500
3 +++ smeserver-phpki-ng-0.3/createlinks 2022-11-18 14:23:22.521000000 -0500
4 @@ -17,6 +17,7 @@
5 panel_link("phpki", 'manager');
6
7 # Events links
8 +event_link("phpki-fixtakey, qw(bootstrap-console-save post-upgrade), "50");
9 event_link("phpki-fixownership", qw(bootstrap-console-save post-upgrade), "02");
10 templates2events("/etc/httpd/pki-conf/httpd.conf", qw(bootstrap-console-save conf-userpanel domain-modify));
11 safe_symlink("sigusr1", "root/etc/e-smith/events/conf-userpanel/services2adjust/httpd-pki");
12 @@ -46,6 +47,7 @@
13
14 #action specific to this package
15 event_link("phpki-fixownership", $event, "02");
16 +event_link("phpki-fixtakey, $event, "50");
17 #event_link("conf-timezone", $event, "30");
18 #services we need to restart
19 safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-pki");
20 diff -Nur --no-dereference smeserver-phpki-ng-0.3.old/root/etc/e-smith/events/actions/phpki-fixtakey smeserver-phpki-ng-0.3/root/etc/e-smith/events/actions/phpki-fixtakey
21 --- smeserver-phpki-ng-0.3.old/root/etc/e-smith/events/actions/phpki-fixtakey 1969-12-31 19:00:00.000000000 -0500
22 +++ smeserver-phpki-ng-0.3/root/etc/e-smith/events/actions/phpki-fixtakey 2022-11-18 14:22:04.178000000 -0500
23 @@ -0,0 +1,8 @@
24 +#!/bin/bash
25 +
26 +if [[ -f /opt/phpki/phpki-store/CA/private/cakey.pem && ! -f /opt/phpki/phpki-store/CA/private/takey.pem ]]
27 +then
28 + echo "creating missing takey.pem"
29 + runuser -u phpki -- openvpn --genkey --secret /opt/phpki/phpki-store/CA/private/takey.pem
30 +fi
31 +
32 diff -Nur --no-dereference smeserver-phpki-ng-0.3.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/20pki smeserver-phpki-ng-0.3/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/20pki
33 --- smeserver-phpki-ng-0.3.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/20pki 2022-11-18 14:02:45.790000000 -0500
34 +++ smeserver-phpki-ng-0.3/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/20pki 2022-11-18 14:07:57.859000000 -0500
35 @@ -10,7 +10,7 @@
36 my $key = 'phpki';
37 my $pool_name = lc $key;
38 my $include_path = ".:/usr/share/pear-addons:/usr/share/pear:/usr/share/pear-data:/usr/share/php";
39 - my $open_basedir = "/opt/phpki:/var/lib/php/phpki:$include_path";
40 + my $open_basedir = "/opt/phpki:/var/lib/php/phpki:/usr/sbin/openvpn:$include_path";
41 my $disabled_functions = 'show_source,dl,passthru'
42 ;
43 # Format vars

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed