diff --git a/scripts/install b/scripts/install index 0e514d2..6a5ace6 100644 --- a/scripts/install +++ b/scripts/install @@ -123,8 +123,8 @@ ynh_add_systemd_config script_dir="$PWD" pushd "$final_path" chown -R $app:$app $final_path -npm install -npm install -g bower +sudo_path npm install +sudo_path npm install -g bower sudo su -l $app -s /bin/bash -c "cd $final_path && env PATH=$PATH bower install" popd