1 |
jpp |
1.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 |