From 117baa32f63efbcb835cbd994904f4653ffeb038 Mon Sep 17 00:00:00 2001 From: Sahitya Chandra Date: Tue, 14 Jan 2025 16:30:26 +0530 Subject: [PATCH] docs updated according to code rabbit --- INSTALLATION.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/INSTALLATION.md b/INSTALLATION.md index 72d39def5a..ab47af2de2 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -422,6 +422,14 @@ This guide outlines the steps to set up and manage the Talawa-Admin service on a - For most distributions: `/etc/systemd/system/` - For systems using `systemd`, this will be the default directory. + // Optional Steps... + - Verify service file permissions and ownership: + ```bash + sudo chmod 644 /etc/systemd/system/talawa_admin.service + sudo chown root:root /etc/systemd/system/talawa_admin.service + sudo systemd-analyze verify talawa_admin.service + ``` + #### 2. **Verify the CODEROOT Path** - Ensure that the `CODEROOT` environment variable matches the absolute path to the Talawa-Admin code directory. @@ -430,6 +438,15 @@ This guide outlines the steps to set up and manage the Talawa-Admin service on a #### 4. **Ensure the `.env` File Exists** - Verify that the path in the `EnvironmentFile` line points to a valid `.env` file located in the root directory of the Talawa-Admin repository. + + // Optional Steps... + - Validate environment file permissions and configuration: + ```bash + sudo chmod 600 /path/to/talawa-admin/.env + sudo chown talawa_admin:talawa_admin /path/to/talawa-admin/.env + # Verify environment variables are loaded + sudo systemctl show-environment + ``` #### 5. **Adjust User and Group** - Modify the `User` and `Group` settings to match the user account intended to run the service.