diff --git a/conf/systemd.service b/conf/systemd.service index 5c999ff..0d72488 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,7 +8,7 @@ User=__APP__ Group=__APP__ EnvironmentFile=__INSTALL_DIR__/.env WorkingDirectory=__INSTALL_DIR__/package/ -ExecStart=__YNH_NODE__ ./src/server.js +ExecStart=__NODEJS_DIR__/node ./src/server.js StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit diff --git a/scripts/install b/scripts/install index 4b2a18b..231276e 100755 --- a/scripts/install +++ b/scripts/install @@ -53,7 +53,7 @@ if [ $install_chromium -eq 1 ]; then ynh_script_progression --message="Installing Chromium..." --weight=8 pushd "$install_dir/package" - ynh_exec_as "$app" $ynh_node_load_PATH $ynh_node "./node_modules/puppeteer/install.js" + ynh_exec_as "$app" $ynh_nodejs_dir/node "./node_modules/puppeteer/install.js" popd fi diff --git a/scripts/upgrade b/scripts/upgrade index b8a19ff..c2c4614 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -81,7 +81,7 @@ if [ "$install_chromium" -eq 1 ]; then ynh_secure_remove --file="$install_dir/.cache/puppeteer/chrome" pushd "$install_dir/package" - ynh_exec_as "$app" $ynh_node_load_PATH $ynh_node "./node_modules/puppeteer/install.js" + ynh_exec_as "$app" $nodejs_dir/node "./node_modules/puppeteer/install.js" popd fi