mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
[fix] support stretch for npm/gulp
This commit is contained in:
parent
f751ea305d
commit
64bff8280a
1 changed files with 13 additions and 2 deletions
11
ynh-dev
11
ynh-dev
|
@ -283,8 +283,19 @@ elif [ "$1" = "use-git" ]; then
|
|||
which gulp > /dev/null
|
||||
if [ $? -eq 1 ]
|
||||
then
|
||||
release=$(lsb_release -c | cut -d ":" -f 2 | sed 's/\s*//')
|
||||
|
||||
if [ $release == "stretch" ]
|
||||
then
|
||||
# for watever reason npm is not in stretch anymore
|
||||
# because why the fuck debian
|
||||
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
|
||||
sudo apt install nodejs
|
||||
else
|
||||
sudo apt-get update --fix-missing
|
||||
sudo apt-get -y install nodejs-legacy npm
|
||||
fi
|
||||
|
||||
cd /vagrant/yunohost-admin/src
|
||||
sudo npm install
|
||||
sudo npm install -g bower
|
||||
|
|
Loading…
Add table
Reference in a new issue