From 157b4f4445e6f6866c328635cc7d7ea8bb518444 Mon Sep 17 00:00:00 2001 From: Erick Kinnee Date: Thu, 8 Aug 2019 11:55:58 -0500 Subject: [PATCH] Update install-guide.md Re-arrange order of install instructions. The existing order has you chgrp and such on the application.conf before it exists. --- installation/install-guide.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/installation/install-guide.md b/installation/install-guide.md index 0df4387..9bc00e1 100644 --- a/installation/install-guide.md +++ b/installation/install-guide.md @@ -226,19 +226,6 @@ ln -s thehive-x.x.x thehive #### 5. First start It is recommended to use a dedicated, non-privileged user account to start TheHive. If so, make sure that the chosen account can create log files in `/opt/thehive/logs`. -If you'd rather start the application as a service, use the following commands: - -```bash -sudo addgroup thehive -sudo adduser --system thehive -sudo cp /opt/thehive/package/thehive.service /usr/lib/systemd/system -sudo chown -R thehive:thehive /opt/thehive -sudo chgrp thehive /etc/thehive/application.conf -sudo chmod 640 /etc/thehive/application.conf -sudo systemctl enable thehive -sudo service thehive start -``` - The only required parameter in order to start TheHive is the key of the server (`play.http.secret.key`). This key is used to authenticate cookies that contain data. If TheHive runs in cluster mode, all instances must share the same key. You can generate the minimal configuration with the following commands (they assume that you have created a @@ -256,6 +243,19 @@ _EOF_ ) | sudo tee -a /etc/thehive/application.conf ``` +If you'd rather start the application as a service, use the following commands: + +```bash +sudo addgroup thehive +sudo adduser --system thehive +sudo cp /opt/thehive/package/thehive.service /usr/lib/systemd/system +sudo chown -R thehive:thehive /opt/thehive +sudo chgrp thehive /etc/thehive/application.conf +sudo chmod 640 /etc/thehive/application.conf +sudo systemctl enable thehive +sudo service thehive start +``` + Now you can start TheHive. To do so, change your current directory to the TheHive installation directory (`/opt/thehive` in this guide), then execute: ```bash