mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Fixes service file
This commit is contained in:
parent
28d06574a1
commit
e54495403d
2 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,7 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/var/www/rocketchat
|
||||
WorkingDirectory=/var/lib/rocketchat
|
||||
User=#USER#
|
||||
ExecStart=/usr/local/bin/node main.js
|
||||
Restart=always
|
||||
|
|
|
@ -78,6 +78,7 @@ sudo mkdir -p $final_path
|
|||
sed -i "s@#ROOTURL#@$domain@g" ../conf/rocketchat.service
|
||||
sed -i "s@#LOCATION#@${path:-/}@g" ../conf/rocketchat.service
|
||||
sed -i "s@#PORT#@/$port@g" ../conf/rocketchat.service
|
||||
sed -i "s@#USER#@/$user@g" ../conf/rocketchat.service
|
||||
sudo cp ../conf/rocketchat.service /etc/systemd/system/
|
||||
sudo systemctl daemon-reload
|
||||
|
||||
|
|
Loading…
Reference in a new issue