aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-04-10 10:44:24 +0200
committerGitHub <noreply@github.com>2017-04-10 10:44:24 +0200
commit279feedd74744ac2ba5c8d18921ba3be9b853bd2 (patch)
treee271bc9d6504eebaed50f6c66a70f215fd8a121b /scripts/install
parentd04d692b8adee05afaa664067d97727a54f3768c (diff)
downloadmastodon_ynh-279feedd74744ac2ba5c8d18921ba3be9b853bd2.tar.gz
mastodon_ynh-279feedd74744ac2ba5c8d18921ba3be9b853bd2.tar.bz2
mastodon_ynh-279feedd74744ac2ba5c8d18921ba3be9b853bd2.zip
Sudo on nodejs install
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install b/scripts/install
index 8e086a7..95be1b2 100644
--- a/scripts/install
+++ b/scripts/install
@@ -62,7 +62,7 @@ ynh_app_setting_set $app final_path $final_path
# Install de Node.js
pushd /opt
-curl -sL https://deb.nodesource.com/setup_4.x | bash -
+curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
sudo apt-get -y install nodejs
npm install -g yarn
@@ -182,4 +182,4 @@ sudo systemctl reload nginx || true
sudo systemctl status nginx
# Nettoyer hosts
-sudo sed -i '/#MASTODON/d' /etc/hosts \ No newline at end of file
+sudo sed -i '/#MASTODON/d' /etc/hosts