diff --git a/conf/Rocketchat.service b/conf/Rocketchat.service index 917fdce..f1d942e 100644 --- a/conf/Rocketchat.service +++ b/conf/Rocketchat.service @@ -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 diff --git a/scripts/install b/scripts/install index 9e70701..dc3d6c2 100644 --- a/scripts/install +++ b/scripts/install @@ -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