mirror of
https://github.com/YunoHost-Apps/thelounge_ynh.git
synced 2024-09-03 20:35:54 +02:00
[fix] install
This commit is contained in:
parent
6dd0e86107
commit
93162a4df7
1 changed files with 6 additions and 3 deletions
|
@ -110,7 +110,11 @@ ynh_system_user_create $app
|
|||
#=================================================
|
||||
|
||||
# Create a dedicated systemd config
|
||||
ynh_use_nodejs
|
||||
ynh_add_systemd_config
|
||||
ynh_replace_string "__NODEJS__" "$nodejs_use_version" "/etc/systemd/system/$app.service"
|
||||
ynh_replace_string "__ENV_PATH__" "$PATH" "/etc/systemd/system/$app.service"
|
||||
ynh_replace_string "__NODE__" "$nodejs_path" "/etc/systemd/system/$app.service"
|
||||
|
||||
#=================================================
|
||||
# MODIFY A CONFIG FILE
|
||||
|
@ -121,9 +125,8 @@ cp -a ../conf/config.js $config_path
|
|||
#=================================================
|
||||
# INSTALL THE LOUNGE
|
||||
#=================================================
|
||||
ln -s /opt/node_n/bin/node /usr/bin/node/
|
||||
ynh_use_nodejs
|
||||
npm -g install $final_path --unsafe-perm
|
||||
|
||||
npm install $final_path --unsafe-perm
|
||||
|
||||
# Install webpack
|
||||
#npm -g install webpack
|
||||
|
|
Loading…
Add table
Reference in a new issue