diff --git a/conf/rocketchat.service b/conf/rocketchat.service index f1d942e..2dcd704 100644 --- a/conf/rocketchat.service +++ b/conf/rocketchat.service @@ -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] diff --git a/scripts/install b/scripts/install index 334f642..5783a7e 100644 --- a/scripts/install +++ b/scripts/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