Don't need the remove script
This commit is contained in:
parent
9a989d47c4
commit
40085c5c0f
|
@ -82,16 +82,6 @@ function remove_nodejs {
|
|||
fi
|
||||
sed -i "/install_${1}/d" $NODEJS_INSTALLED_APPS_FILE
|
||||
if ! grep "install_" $NODEJS_INSTALLED_APPS_FILE; then
|
||||
cat <<EOF > /root/remove-nodejs.sh
|
||||
#!/bin/bash
|
||||
PATH="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/bin"
|
||||
NODE_PATH="/usr/lib/node_modules"
|
||||
npm uninstall -g --save
|
||||
exit 0
|
||||
EOF
|
||||
chmod +x /root/remove-nodejs.sh
|
||||
/root/remove-nodejs.sh
|
||||
|
||||
apt-get -yq remove --purge nodejs
|
||||
|
||||
if [ -f /usr/bin/nodejs ]; then
|
||||
|
|
Loading…
Reference in New Issue