mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Fixes service config
This commit is contained in:
parent
e5f0ed34c5
commit
f76289a9c7
2 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ Restart=always
|
|||
SyslogIdentifier=Rocket.Chat
|
||||
Environment="BIND_IP=127.0.0.1"
|
||||
Environment="ROOT_URL=https://#ROOTURL##LOCATION#"
|
||||
Environment="PORT=3000"
|
||||
Environment="PORT=#PORT#"
|
||||
Environment="MONGO_URL=mongodb://localhost:27017/rocketchat"
|
||||
|
||||
[Install]
|
||||
|
|
|
@ -78,8 +78,8 @@ sudo mkdir -p $final_path
|
|||
# Copy and set systemd configuration
|
||||
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#@/$serviceuser@g" ../conf/rocketchat.service
|
||||
sed -i "s@#PORT#@$port@g" ../conf/rocketchat.service
|
||||
sed -i "s@#USER#@$serviceuser@g" ../conf/rocketchat.service
|
||||
sudo cp ../conf/rocketchat.service /etc/systemd/system/
|
||||
sudo systemctl daemon-reload
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue