1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gamja_ynh.git synced 2024-09-03 18:36:34 +02:00

Fix upgrade: npm i -g requires root permissions

This commit is contained in:
Salamandar 2024-06-02 22:35:19 +02:00
parent da62ca5e7b
commit 82c708415d

View file

@ -40,7 +40,7 @@ ynh_script_progression --message="Building app... (this will take some time and
pushd "$install_dir" pushd "$install_dir"
ynh_use_nodejs ynh_use_nodejs
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm i -g npm ynh_exec_warn_less npm i -g npm
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install --production ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install --production
popd popd