1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ghost_ynh.git synced 2024-09-03 19:16:02 +02:00

Fix wrong nodejs path

This commit is contained in:
root 2019-11-21 11:03:39 +00:00
parent b4e7cf8ded
commit 49808fef24
3 changed files with 4 additions and 1 deletions

View file

@ -8,7 +8,7 @@ WorkingDirectory=__FINALPATH__
User=__APP__
Group=__APP__
Environment="NODE_ENV=production"
ExecStart=/usr/bin/node index.js run
ExecStart=__NODEJS_PATH__/node index.js run
Restart=always
[Install]

View file

@ -74,6 +74,7 @@ ynh_app_setting_set $app port $port
# install nodejs
ynh_install_nodejs 8
ynh_use_nodejs
# add yarn repo for Debian
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
@ -174,6 +175,7 @@ chown -R $app: $final_path
#=================================================
# Create a dedicated systemd config
ynh_replace_string --match_string="__NODEJS_PATH__" --replace_string="$nodejs_path" --target_file="../conf/systemd.service"
ynh_add_systemd_config
systemctl start "$app"

View file

@ -82,6 +82,7 @@ chown -R $app: $final_path
# install nodejs
ynh_install_nodejs 8
ynh_use_nodejs
# add yarn repo for Debian
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -