From 624807e9227fadbee85f43d33da5611ec40c7b2d Mon Sep 17 00:00:00 2001 From: frju365 Date: Tue, 17 Apr 2018 00:57:15 +0200 Subject: [PATCH] Update install --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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