1 |
michel |
1.1 |
diff -urN smeserver-durep-1.5.0.old/root/usr/sbin/durep.daily smeserver-durep-1.5.0/root/usr/sbin/durep.daily |
2 |
|
|
--- smeserver-durep-1.5.0.old/root/usr/sbin/durep.daily 2021-03-04 13:39:50.000000000 +0400 |
3 |
|
|
+++ smeserver-durep-1.5.0/root/usr/sbin/durep.daily 2021-03-04 13:48:57.867000000 +0400 |
4 |
|
|
@@ -32,8 +32,9 @@ |
5 |
|
|
|
6 |
|
|
# make the stats viewable |
7 |
|
|
/usr/local/bin/durep -c /var/lib/durep/ |
8 |
|
|
-chmod 666 /var/lib/durep/* |
9 |
|
|
-chmod 777 /etc/e-smith/web/panels/manager/html/durep/*.cgi |
10 |
|
|
+chmod 644 /var/lib/durep/* |
11 |
|
|
+chown root:admin /etc/e-smith/web/panels/manager/html/durep/*.cgi |
12 |
|
|
+chmod 750 /etc/e-smith/web/panels/manager/html/durep/*.cgi |
13 |
|
|
|
14 |
|
|
# remove ds file not renewd for more than 24 hours |
15 |
|
|
find /var/lib/durep/ -type f -iname *.ds -mtime +"1" |xargs rm -f |