summaryrefslogtreecommitdiff
path: root/pcr/lynis/lynis.install
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/lynis/lynis.install')
-rw-r--r--pcr/lynis/lynis.install14
1 files changed, 8 insertions, 6 deletions
diff --git a/pcr/lynis/lynis.install b/pcr/lynis/lynis.install
index abdb081f1..1b104f01e 100644
--- a/pcr/lynis/lynis.install
+++ b/pcr/lynis/lynis.install
@@ -1,8 +1,10 @@
pre_upgrade() {
- chmod -R o= /usr/share/lynis
- chmod 0755 /usr/share/lynis
- # fix non-test includes to let lynis run as user but complain gracefully
- chmod o+rx /usr/share/lynis/include
- chmod o+r /usr/share/lynis/include/*
- chmod o-r /usr/share/lynis/include/tests_*
+ # fix local old umask
+ chmod o+rx,g+rx /usr/share/lynis/{include,db,plugins}
+}
+
+post_upgrade() {
+ chmod o+r,g+r /usr/share/lynis/include/*
+ chmod o+r,g+r /usr/share/lynis/db/*
+ chmod o+r,g+r /usr/share/lynis/plugins/*
}