45 |
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog"); |
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog"); |
46 |
diff -Nur --no-dereference e-smith-base-5.8.1.old/root/etc/e-smith/events/actions/logrotate-migrate e-smith-base-5.8.1/root/etc/e-smith/events/actions/logrotate-migrate |
diff -Nur --no-dereference e-smith-base-5.8.1.old/root/etc/e-smith/events/actions/logrotate-migrate e-smith-base-5.8.1/root/etc/e-smith/events/actions/logrotate-migrate |
47 |
--- e-smith-base-5.8.1.old/root/etc/e-smith/events/actions/logrotate-migrate 1969-12-31 19:00:00.000000000 -0500 |
--- e-smith-base-5.8.1.old/root/etc/e-smith/events/actions/logrotate-migrate 1969-12-31 19:00:00.000000000 -0500 |
48 |
+++ e-smith-base-5.8.1/root/etc/e-smith/events/actions/logrotate-migrate 2022-04-16 23:54:07.894000000 -0400 |
+++ e-smith-base-5.8.1/root/etc/e-smith/events/actions/logrotate-migrate 2022-04-16 23:59:07.124000000 -0400 |
49 |
@@ -0,0 +1,50 @@ |
@@ -0,0 +1,51 @@ |
50 |
+#!/bin/bash |
+#!/bin/bash |
51 |
+# this script is to migrate old symlink log to regular file in order |
+# this script is to migrate old symlink log to regular file in order |
52 |
+# to be handled by logrotate |
+# to be handled by logrotate |
67 |
+/var/log/httpd/bkpc_access_log |
+/var/log/httpd/bkpc_access_log |
68 |
+/var/log/httpd/bkpc_error_log |
+/var/log/httpd/bkpc_error_log |
69 |
+/var/log/httpd/issoqlog_access_log |
+/var/log/httpd/issoqlog_access_log |
70 |
|
+/var/log/httpd/isoqlog_access_log |
71 |
+/var/log/httpd/isoqlog_error_log |
+/var/log/httpd/isoqlog_error_log |
72 |
+/var/log/httpd/pki_access_log |
+/var/log/httpd/pki_access_log |
73 |
+/var/log/httpd/pki_error_log |
+/var/log/httpd/pki_error_log |
88 |
+ if [ -f "$mylink" ]; then |
+ if [ -f "$mylink" ]; then |
89 |
+ cp --attributes-only "$mylink" "$f" |
+ cp --attributes-only "$mylink" "$f" |
90 |
+ fi |
+ fi |
91 |
+ found ++ |
+ ((found+=1)) |
92 |
+ fi |
+ fi |
93 |
+done |
+done |
94 |
+ |
+ |