diff --git a/conf/systemd.service b/conf/systemd.service index 1b56edb..fc89f0e 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,7 @@ Type=simple User=ztncui Group=ztncui Environment="__YNH_NODE_LOAD_PATH__" -WorkingDirectory=__FINAL_PATH__/src/ +WorkingDirectory=__FINALPATH__/src/ ExecStart=__YNH_NPM__ start [Install] diff --git a/scripts/_common.sh b/scripts/_common.sh index 9d1b813..5070404 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -97,8 +97,6 @@ ynh_add_systemd_config_vars () { # FUTURE OFFICIAL HELPERS #================================================= -#!/bin/bash - n_install_dir="/opt/node_n" node_version_path="$n_install_dir/n/versions/node" # N_PREFIX is the directory of n, it needs to be loaded as a environment variable.