mirror of
https://github.com/YunoHost-Apps/wekan_ynh.git
synced 2024-09-03 20:36:09 +02:00
Change __ENV_PATH__ to $nodejs_path
This commit is contained in:
parent
b134ebba85
commit
e40a3ab65c
2 changed files with 5 additions and 3 deletions
|
@ -187,7 +187,7 @@ popd
|
|||
|
||||
# Create a dedicated systemd config
|
||||
ynh_print_info "Adding wekan systemd service ..."
|
||||
ynh_replace_string "__ENV_PATH__" "$PATH" "../conf/systemd.service"
|
||||
ynh_replace_string "__ENV_PATH__" "$nodejs_path" "../conf/systemd.service"
|
||||
ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service"
|
||||
ynh_replace_string "__URI__" "$path_url" "../conf/systemd.service"
|
||||
ynh_replace_string "__PORT__" "$port" "../conf/systemd.service"
|
||||
|
|
|
@ -66,8 +66,9 @@ fi
|
|||
|
||||
if ynh_version_gt "0.77-2" "${previous_version}" ; then
|
||||
ynh_install_nodejs 8.9.3
|
||||
ynh_use_nodejs
|
||||
# Create a dedicated systemd config
|
||||
ynh_replace_string "__ENV_PATH__" "$PATH" "../conf/systemd.service"
|
||||
ynh_replace_string "__ENV_PATH__" "$nodejs_path" "../conf/systemd.service"
|
||||
ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service"
|
||||
ynh_replace_string "__URI__" "$path_url/" "../conf/systemd.service"
|
||||
ynh_replace_string "__PORT__" "$port" "../conf/systemd.service"
|
||||
|
@ -84,9 +85,10 @@ if ynh_version_gt "1.07~ynh2" "${previous_version}" ; then
|
|||
ynh_install_app_dependencies "mongodb mongodb-server"
|
||||
yunohost service remove mongod
|
||||
yunohost service add mongodb --log "/var/log/mongodb/mongodb.log"
|
||||
ynh_use_nodejs
|
||||
|
||||
# Gotta regen the systemd config because mongodb service name changed
|
||||
ynh_replace_string "__ENV_PATH__" "$PATH" "../conf/systemd.service"
|
||||
ynh_replace_string "__ENV_PATH__" "$nodejs_path" "../conf/systemd.service"
|
||||
ynh_replace_string "__DB_NAME__" "$db_name" "../conf/systemd.service"
|
||||
ynh_replace_string "__URI__" "$path_url/" "../conf/systemd.service"
|
||||
ynh_replace_string "__PORT__" "$port" "../conf/systemd.service"
|
||||
|
|
Loading…
Reference in a new issue