|
@@ -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
|