mirror of
https://github.com/YunoHost-Apps/codimd_ynh.git
synced 2024-09-03 18:16:32 +02:00
Fix
This commit is contained in:
parent
a489492a49
commit
c7d926727b
2 changed files with 4 additions and 3 deletions
|
@ -116,7 +116,8 @@ chown -R $app: $final_path
|
|||
|
||||
pushd "$final_path" || ynh_die
|
||||
ynh_use_nodejs
|
||||
ynh_exec_warn_less bin/setup
|
||||
ynh_exec_warn_less bin/setup
|
||||
ynh_exec_as $app env $ynh_node_load_PATH npm update
|
||||
ynh_exec_as $app env $ynh_node_load_PATH npm run build
|
||||
popd || ynh_die
|
||||
|
||||
|
@ -135,7 +136,7 @@ ynh_add_config --template="../conf/.sequelizerc.example" --destination="$final_p
|
|||
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
||||
|
||||
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
|
||||
|
||||
ynh_replace_string --match_string="__YNH_NPM__" --replace_string="$ynh_npm" --target_file="../conf/systemd.service"
|
||||
ynh_add_systemd_config
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -143,7 +143,7 @@ fi
|
|||
ynh_script_progression --message="Configuring a systemd service..." --weight=2
|
||||
|
||||
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
|
||||
|
||||
ynh_replace_string --match_string="__YNH_NPM__" --replace_string="$ynh_npm" --target_file="../conf/systemd.service"
|
||||
# Create a dedicated systemd config
|
||||
ynh_add_systemd_config
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue