소스 검색

Don't need the remove script

Bob Mottram 8 년 전
부모
커밋
40085c5c0f
1개의 변경된 파일0개의 추가작업 그리고 10개의 파일을 삭제
  1. 0
    10
      src/freedombone-utils-nodejs

+ 0
- 10
src/freedombone-utils-nodejs 파일 보기

@@ -82,16 +82,6 @@ function remove_nodejs {
82 82
     fi
83 83
     sed -i "/install_${1}/d" $NODEJS_INSTALLED_APPS_FILE
84 84
     if ! grep "install_" $NODEJS_INSTALLED_APPS_FILE; then
85
-        cat <<EOF > /root/remove-nodejs.sh
86
-#!/bin/bash
87
-PATH="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/bin"
88
-NODE_PATH="/usr/lib/node_modules"
89
-npm uninstall -g --save
90
-exit 0
91
-EOF
92
-        chmod +x /root/remove-nodejs.sh
93
-        /root/remove-nodejs.sh
94
-
95 85
         apt-get -yq remove --purge nodejs
96 86
 
97 87
         if [ -f /usr/bin/nodejs ]; then