Browse Source

Merge branch 'stretch' of https://github.com/bashrc/freedombone

Bob Mottram 7 years ago
parent
commit
3901ed9c53
2 changed files with 11 additions and 4 deletions
  1. 3
    0
      src/freedombone-utils-setup
  2. 8
    4
      tests/check-libs-mode.sh

+ 3
- 0
src/freedombone-utils-setup View File

590
     fi
590
     fi
591
     if [ -d /usr/lib ]; then
591
     if [ -d /usr/lib ]; then
592
         chown -R root:root /usr/lib/*
592
         chown -R root:root /usr/lib/*
593
+        if [ -d /usr/lib/node_modules ]; then
594
+            chmod -R 750 /usr/lib/node_modules/*
595
+        fi
593
     fi
596
     fi
594
     if [ -d /usr/lib64 ]; then
597
     if [ -d /usr/lib64 ]; then
595
         chown -R root:root /usr/lib64/*
598
         chown -R root:root /usr/lib64/*

+ 8
- 4
tests/check-libs-mode.sh View File

7
         if [ $COUNT -eq 0 ];then
7
         if [ $COUNT -eq 0 ];then
8
                 :
8
                 :
9
         else
9
         else
10
-                exit 1
10
+            find -L /lib  -type f  -perm  /022  -exec ls -l {} \;
11
+            exit 1
11
         fi
12
         fi
12
 fi
13
 fi
13
 if [ -d "/lib64" ];then
14
 if [ -d "/lib64" ];then
17
         if [ $COUNT -eq 0 ];then
18
         if [ $COUNT -eq 0 ];then
18
                 :
19
                 :
19
         else
20
         else
20
-                exit 1
21
+            find -L /lib64  -type f  -perm  /022  -exec ls -l {} \;
22
+            exit 1
21
         fi
23
         fi
22
 fi
24
 fi
23
 if [ -d "/usr/lib" ];then
25
 if [ -d "/usr/lib" ];then
27
         if [ $COUNT -eq 0 ];then
29
         if [ $COUNT -eq 0 ];then
28
                 :
30
                 :
29
         else
31
         else
30
-                exit 1
32
+            find -L /usr/lib  -type f  -perm  /022  -exec ls -l {} \;
33
+            exit 1
31
         fi
34
         fi
32
 fi
35
 fi
33
 if [ -d "/usr/lib64" ];then
36
 if [ -d "/usr/lib64" ];then
37
         if [ $COUNT -eq 0 ];then
40
         if [ $COUNT -eq 0 ];then
38
                 :
41
                 :
39
         else
42
         else
40
-                exit 1
43
+            find -L /usr/lib64  -type f  -perm  /022  -exec ls -l {} \;
44
+            exit 1
41
         fi
45
         fi
42
 fi
46
 fi
43
 
47