mirror of
https://github.com/YunoHost-Apps/cac-proxy_ynh.git
synced 2024-09-03 18:16:07 +02:00
yunohost changed the way to call node
This commit is contained in:
parent
4a4408579d
commit
5c5eaa3d3c
3 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
EnvironmentFile=__INSTALL_DIR__/.env
|
EnvironmentFile=__INSTALL_DIR__/.env
|
||||||
WorkingDirectory=__INSTALL_DIR__/package/
|
WorkingDirectory=__INSTALL_DIR__/package/
|
||||||
ExecStart=__YNH_NODE__ ./src/server.js
|
ExecStart=__NODEJS_DIR__/node ./src/server.js
|
||||||
StandardOutput=append:/var/log/__APP__/__APP__.log
|
StandardOutput=append:/var/log/__APP__/__APP__.log
|
||||||
StandardError=inherit
|
StandardError=inherit
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ if [ $install_chromium -eq 1 ]; then
|
||||||
ynh_script_progression --message="Installing Chromium..." --weight=8
|
ynh_script_progression --message="Installing Chromium..." --weight=8
|
||||||
|
|
||||||
pushd "$install_dir/package"
|
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
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ if [ "$install_chromium" -eq 1 ]; then
|
||||||
ynh_secure_remove --file="$install_dir/.cache/puppeteer/chrome"
|
ynh_secure_remove --file="$install_dir/.cache/puppeteer/chrome"
|
||||||
|
|
||||||
pushd "$install_dir/package"
|
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
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue