From 84eb29faaec18a2d23cacb4c3a094fa8b8ed3471 Mon Sep 17 00:00:00 2001 From: Cyryl Plotnicki-Chudyk Date: Sat, 1 Aug 2015 09:20:19 +0200 Subject: [PATCH] link nodejs as node only when necessary --- common/configure_fresh_system | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/configure_fresh_system b/common/configure_fresh_system index 0f756447..41ef3f25 100755 --- a/common/configure_fresh_system +++ b/common/configure_fresh_system @@ -37,6 +37,12 @@ ln -vfs "$DIR/.config/autostart/conky.desktop" ~/.config/autostart/ mkdir -p ~/.config/vdirsyncer/ ln -vfs "$DIR/.config/vdirsyncer/config" ~/.config/vdirsyncer/ +# symlink 'nodejs' as node on some systems +# will replace symlink if it exists, but won't replace regular file +if [[ ! -f /usr/bin/node ]]; then + sudo ln -vfs /usr/bin/nodejs /usr/bin/node +fi + # tools ln -vfs "$DIR/tools" ~/ @@ -73,7 +79,6 @@ source $HOME/.rvm/scripts/rvm rvm install ruby # talks: reveal-md -sudo ln -vfs /usr/bin/nodejs /usr/bin/node sudo npm install -g reveal-md # vdir syncer