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

Add node bin absolute path recognition

This commit is contained in:
Selamanse 2018-10-19 21:46:26 +02:00
parent 8ebb0f1bea
commit 0e1df25d93
2 changed files with 4 additions and 1 deletions

View file

@ -6,7 +6,7 @@ After=network.target
Type=simple
WorkingDirectory=#DESTDIR#
User=#USER#
ExecStart=node main.js
ExecStart=#NODE# main.js
Restart=always
SyslogIdentifier=rocketchat
Environment="BIND_IP=127.0.0.1"

View file

@ -84,6 +84,9 @@ sed -i "s@#PORT#@$port@g" ../conf/rocketchat.service
sed -i "s@#USER#@$serviceuser@g" ../conf/rocketchat.service
sed -i "s@#DESTDIR#@$final_path@g" ../conf/rocketchat.service
sed -i "s@#DBNAME#@$dbname@g" ../conf/rocketchat.service
# absolute node path needed
NODE_BIN=$(which node)
sed -i "s@#NODE#@$NODE_BIN@g" ../conf/rocketchat.service
sudo cp ../conf/rocketchat.service /etc/systemd/system/$app.service
sudo systemctl daemon-reload