mirror of
https://github.com/YunoHost-Apps/wekan_ynh.git
synced 2024-09-03 20:36:09 +02:00
Add needed ynh_use_nodejs
to be abble to use $nodejs_path variable
This commit is contained in:
parent
dd7cb7857d
commit
b432a03651
1 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,7 @@ fi
|
|||
if ynh_version_gt "0.77-2" "${previous_version}" ; then
|
||||
ynh_install_nodejs 8.9.3
|
||||
# Create a dedicated systemd config
|
||||
ynh_use_nodejs
|
||||
ynh_replace_string "__ENV_PATH__" "$nodejs_path" "../conf/systemd.service"
|
||||
ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service"
|
||||
ynh_replace_string "__DOMAIN_URI__" "$domain$path_url" "../conf/systemd.service"
|
||||
|
@ -89,6 +90,7 @@ if ynh_version_gt "1.07~ynh2" "${previous_version}" ; then
|
|||
yunohost service add mongodb --log "/var/log/mongodb/mongodb.log"
|
||||
|
||||
# Gotta regen the systemd config because mongodb service name changed
|
||||
ynh_use_nodejs
|
||||
ynh_replace_string "__ENV_PATH__" "$nodejs_path" "../conf/systemd.service"
|
||||
ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service"
|
||||
ynh_replace_string "__DOMAIN_URI__" "$domain$path_url" "../conf/systemd.service"
|
||||
|
|
Loading…
Reference in a new issue