Skip to content

Commit

Permalink
Turn off legacy symlinks for ubuntu 16.04
Browse files Browse the repository at this point in the history
With the New version of NodeJS v6.11.3 puppet brakes the installation on ubuntu 16.04

* Content of the node packages.
V6.11.2
```
~$ dpkg -l |grep nodejs
ii  nodejs                              6.11.2-1nodesource1~xenial1                amd64        Node.js event-based server-side javascript engine
~$ dpkg -L nodejs |grep '/usr/bin/'
/usr/bin/nodejs
/usr/bin/npm
```
V6.11.3
```
~# dpkg -l|grep nodejs
ii  nodejs                       6.11.3-1nodesource1                   amd64        Node.js event-based server-side javascript engine

~# dpkg -L nodejs |grep '/usr/bin/'
/usr/bin/node
/usr/bin/npm
```

After puppet runs to install nodejs the node binary is a broken link. 
```
~# ls -ltra /usr/bin/node /usr/bin/nodejs  /etc/alternatives/nodejs
lrwxrwxrwx 1 root root 24 Sep 15 09:41 /usr/bin/nodejs -> /etc/alternatives/nodejs
lrwxrwxrwx 1 root root 13 Sep 15 09:41 /etc/alternatives/nodejs -> /usr/bin/node
lrwxrwxrwx 1 root root 15 Sep 15 09:41 /usr/bin/node -> /usr/bin/nodejs
```
  • Loading branch information
guerremdq authored and bastelfreak committed Sep 17, 2017
1 parent a5a41d1 commit d0d8193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
$repo_class = '::nodejs::repo::nodesource'
}
elsif $::operatingsystemrelease =~ /^16.04$/ {
$legacy_debian_symlinks = true
$legacy_debian_symlinks = false
$manage_package_repo = true
$nodejs_debug_package_name = 'nodejs-dbg'
$nodejs_dev_package_name = 'nodejs-dev'
Expand Down

0 comments on commit d0d8193

Please sign in to comment.