mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Adds capability to run in a subfolder
This commit is contained in:
parent
53dac86ed5
commit
de0adfc3e7
2 changed files with 13 additions and 12 deletions
|
@ -1,19 +1,19 @@
|
|||
[Unit]
|
||||
Description=Rocket.Chat
|
||||
Description=Rocket.Chat
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/var/www/rocketchat
|
||||
User=www-data
|
||||
Type=simple
|
||||
WorkingDirectory=/var/www/rocketchat
|
||||
User=www-data
|
||||
Group=www-data
|
||||
ExecStart=/usr/local/bin/node main.js
|
||||
Restart=always
|
||||
SyslogIdentifier=Rocket.Chat
|
||||
Environment="BIND_IP=127.0.0.1"
|
||||
Environment="ROOT_URL=https://CHANGEMETOROOTURL"
|
||||
Environment="PORT=3000"
|
||||
ExecStart=/usr/local/bin/node main.js
|
||||
Restart=always
|
||||
SyslogIdentifier=Rocket.Chat
|
||||
Environment="BIND_IP=127.0.0.1"
|
||||
Environment="ROOT_URL=https://#ROOTURL##LOCATION#"
|
||||
Environment="PORT=3000"
|
||||
Environment="MONGO_URL=mongodb://localhost:27017/rocketchat"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -61,7 +61,8 @@ ynh_app_setting_set $app final_path $final_path
|
|||
sudo mkdir -p $final_path
|
||||
|
||||
# Copy and set systemd configuration
|
||||
sed -i "s@CHANGEMETOROOTURL@$domain/@g" ../conf/Rocketchat.service
|
||||
sed -i "s@#ROOTURL#@$domain/@g" ../conf/Rocketchat.service
|
||||
sed -i "s@#LOCATION#@/${path}@g" ../conf/Rocketchat.service
|
||||
sudo cp ../conf/Rocketchat.service /etc/systemd/system/
|
||||
sudo systemctl daemon-reload
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue