Browse Source

Fix stray permissions

Bob Mottram 8 years ago
parent
commit
2a66fae204
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-utils-setup

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

@@ -488,6 +488,10 @@ function disable_ctrl_alt_del {
488 488
 }
489 489
 
490 490
 function lockdown_permissions {
491
+    if [ -d /root/.npm ]; then
492
+        find /root/.npm -name package.json -exec chmod 700 {} \;
493
+    fi
494
+
491 495
     # All commands owned by root
492 496
     if [ -d /root/.cache/yarn ]; then
493 497
         rm -rf /root/.cache/yarn