/[smecontribs]/rpms/smeserver-phpki-ng/contribs10/smeserver-phpki-ng-0.3-bz12228-12198-11873-12229.patch
ViewVC logotype

Contents of /rpms/smeserver-phpki-ng/contribs10/smeserver-phpki-ng-0.3-bz12228-12198-11873-12229.patch

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


Revision 1.1 - (show annotations) (download)
Fri Nov 18 18:46:10 2022 UTC (23 months, 2 weeks ago) by jpp
Branch: MAIN
CVS Tags: smeserver-phpki-ng-0_3-9_el7_sme, smeserver-phpki-ng-0_3-17_el7_sme, smeserver-phpki-ng-0_3-18_el7_sme, smeserver-phpki-ng-0_3-20_el7_sme, smeserver-phpki-ng-0_3-21_el7_sme, smeserver-phpki-ng-0_3-19_el7_sme, smeserver-phpki-ng-0_3-15_el7_sme, smeserver-phpki-ng-0_3-16_el7_sme, smeserver-phpki-ng-0_3-13_el7_sme, smeserver-phpki-ng-0_3-14_el7_sme, smeserver-phpki-ng-0_3-11_el7_sme, smeserver-phpki-ng-0_3-12_el7_sme, smeserver-phpki-ng-0_3-22_el7_sme, HEAD
* Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.3-10.sme
- ease migration from smeserver-phpki smeserver-phpki-ng using Provides [SME: 12222]
- fix ownership on migration (backup/restore) [SME: 12228]
- remove /var/service/httpd-pki [SME: 12229]
- remove old logrotate [SME: 11873]
- remove /var/log/phpki and /var/log/httpd-pki [SME: 12198]

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 13:19:19.850000000 -0500
3 +++ smeserver-phpki-ng-0.3/createlinks 2022-11-18 13:37:33.398000000 -0500
4 @@ -17,15 +17,12 @@
5 panel_link("phpki", 'manager');
6
7 # Events links
8 +event_link("phpki-fixownership", qw(bootstrap-console-save post-upgrade), "02");
9 templates2events("/etc/httpd/pki-conf/httpd.conf", qw(bootstrap-console-save conf-userpanel domain-modify));
10 safe_symlink("sigusr1", "root/etc/e-smith/events/conf-userpanel/services2adjust/httpd-pki");
11 safe_symlink("sigusr1", "root/etc/e-smith/events/domain-modify/services2adjust/httpd-pki");
12 safe_symlink("sigusr1", "root/etc/e-smith/events/logrotate/services2adjust/httpd-pki");
13
14 -# Create needed empty files
15 -safe_touch("root/etc/e-smith/events/logrotate/logfiles2timestamp/var/log/httpd/pki_access_log");
16 -safe_touch("root/etc/e-smith/events/logrotate/logfiles2timestamp/var/log/httpd/pki_error_log");
17 -safe_touch("root/var/service/httpd-pki/down");
18
19 # our event specific for updating with yum without reboot
20 $event = "smeserver-phpki-ng-update";
21 @@ -48,6 +45,7 @@
22 event_link("systemd-reload", $event, "50");
23
24 #action specific to this package
25 +event_link("phpki-fixownership", $event, "02");
26 #event_link("conf-timezone", $event, "30");
27 #services we need to restart
28 safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-pki");
29 diff -Nur --no-dereference smeserver-phpki-ng-0.3.old/root/etc/e-smith/events/actions/phpki-fixownership smeserver-phpki-ng-0.3/root/etc/e-smith/events/actions/phpki-fixownership
30 --- smeserver-phpki-ng-0.3.old/root/etc/e-smith/events/actions/phpki-fixownership 1969-12-31 19:00:00.000000000 -0500
31 +++ smeserver-phpki-ng-0.3/root/etc/e-smith/events/actions/phpki-fixownership 2022-11-18 13:44:44.795000000 -0500
32 @@ -0,0 +1,8 @@
33 +#!/bin/bash
34 +
35 +chown root:phpki /opt/phpki/html/config.php
36 +chown root:phpki /opt/phpki/html/openssl.cnf
37 +chown phpki:phpki -R /opt/phpki/phpki-store*
38 +
39 +chmod +x /opt/phpki/html/
40 +chmod +x /opt/phpki/html/ca

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