diff --git a/scripts/install b/scripts/install index 5e26ab0..0e514d2 100644 --- a/scripts/install +++ b/scripts/install @@ -92,7 +92,7 @@ ynh_app_setting_set $app final_path $final_path ynh_setup_source "$final_path" # Download, check integrity and uncompress the source from app.src # Set files ownership during installation -chown $app: $final_path -R +chown $app:$app $final_path -R chmod 755 $final_path -R #================================================= @@ -122,7 +122,7 @@ ynh_add_systemd_config script_dir="$PWD" pushd "$final_path" -chown -R $app: $final_path +chown -R $app:$app $final_path npm install npm install -g bower sudo su -l $app -s /bin/bash -c "cd $final_path && env PATH=$PATH bower install"