Quellcode durchsuchen

ownership of npm

Bob Mottram vor 7 Jahren
Ursprung
Commit
1f6546d464
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2
    0
      src/freedombone-app-scuttlebot

+ 2
- 0
src/freedombone-app-scuttlebot Datei anzeigen

402
 
402
 
403
     cat <<EOF > "$rootdir/usr/bin/install_scuttlebot"
403
     cat <<EOF > "$rootdir/usr/bin/install_scuttlebot"
404
 #!/bin/bash
404
 #!/bin/bash
405
+chown -R $(whoami):$(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
406
+chown -R $(whoami):$(whoami) ~/.npm
405
 if ! npm install --arch=$NPM_ARCH -g scuttlebot@${SCUTTLEBOT_VERSION}; then
407
 if ! npm install --arch=$NPM_ARCH -g scuttlebot@${SCUTTLEBOT_VERSION}; then
406
     exit 2
408
     exit 2
407
 fi
409
 fi