Skip to content

Commit 5bb308f

Browse files
chore: Update SystemGuard app setup and dependencies
1 parent 87d61f8 commit 5bb308f

4 files changed

Lines changed: 7 additions & 32 deletions

File tree

README.md

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,14 @@ System Guard is a Flask app designed to monitor server stats such as CPU, Memory
44

55
## Installation
66

7-
### For running once
8-
9-
1. Clone the repository:
10-
117
```bash
12-
git clone https://github.com/codeperfectplus/SystemDashboard.git
8+
bash setup.sh
139
```
10+
It will install the SystemGuard app and its dependencies. The app will be available at `http://localhost:5050`.
1411

15-
2. Install the dependencies:
16-
17-
```bash
18-
pip install -r requirements.txt
19-
```
20-
21-
3. Run the app:
22-
23-
```bash
24-
python app.py
25-
```
12+
## Dependencies(must be installed)
2613

27-
4. Open the app in your browser:
28-
29-
```bash
30-
http://localhost:5000
31-
```
32-
33-
### For cronjob
34-
35-
Task will be added to cronjob to run the script every minute and app will be stay active on port 5050 even after closing the terminal and rebooting the system.
36-
37-
```bash
38-
bash cronjob.sh
39-
```
14+
- Anaconda3/Miniconda3
4015

4116
## Features
4217

setup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
DOWNLOAD_DIR="/tmp"
1010
EXTRACT_DIR="/home/$USER/.systemguard"
1111

12-
# Prompt the user to enter the version of SystemGuard to install
12+
Prompt the user to enter the version of SystemGuard to install
1313
echo "Enter the version of SystemGuard to install (e.g., v1.0.0 or 'latest' for the latest version):"
1414
read VERSION
1515

@@ -73,9 +73,9 @@ unzip -q $DOWNLOAD_DIR/systemguard.zip -d $EXTRACT_DIR
7373
rm $DOWNLOAD_DIR/systemguard.zip
7474
echo "Extraction completed."
7575

76-
# Navigate to the extracted SystemGuard directory
76+
Navigate to the extracted SystemGuard directory
7777
echo "Navigating to the SystemGuard setup directory..."
78-
cd $EXTRACT_DIR/SystemGuard-*/
78+
cd $EXTRACT_DIR/SystemGuard-*/src/scripts
7979

8080
# Check if the cronjob.sh script exists in the extracted content
8181
if [ ! -f "cronjob.sh" ]; then
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)