Skip to content

Commit

Permalink
Small changes in texts
Browse files Browse the repository at this point in the history
  • Loading branch information
K-cermak committed Feb 2, 2025
1 parent be1d083 commit 287c54f
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 16 deletions.
28 changes: 19 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,36 @@
### Installation

```
sudo apt update
sudo apt install git
git clone https://github.com/K-cermak/UptimeKumaProbe
cd UptimeKumaProbe/scripts
chmod +x install.sh
./install.sh
sudo ./install.sh
```

- If this last command fails, try run:
```chmod +x install.sh```

- Tip: You can now remove the `UptimeKumaProbe` directory.
- App is installed in `/opt/kprobe`.
- API is installed as a service and will start on boot.
- App is installed in `/opt/kprobe`, API is installed as a service and will start on boot.


<br>

### Uninstallation

- If you have removed the `UptimeKumaProbe` directory, clone it again.
> ```
> git clone https://github.com/K-cermak/UptimeKumaProbe
> ```
- If you have removed the `UptimeKumaProbe` directory (cloned Git repository), clone it again or download the [`uninstall.sh`](scripts/uninstall.sh) script.
```
git clone https://github.com/K-cermak/UptimeKumaProbe
```


- Run the uninstall script:

```
cd UptimeKumaProbe/scripts
chmod +x uninstall.sh
./uninstall.sh
sudo ./uninstall.sh
```
Binary file modified bin/api-server
Binary file not shown.
Binary file modified bin/cli
Binary file not shown.
4 changes: 2 additions & 2 deletions cli/cmd/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func InitDatabase() {
helpers.PrintInfo("Initializing database")
db.InitDatabase()
helpers.PrintSuccess("Database initialized successfully")
helpers.PrintInfo("You should now run <sudo kprobe api restart> to apply the changes")
helpers.PrintInfo("You should now run <sudo kprobe api restart> to apply some changes")
}

func ResetDatabase() {
Expand All @@ -47,5 +47,5 @@ func ResetDatabase() {
helpers.PrintInfo("Resetting database")
db.InitDatabase()
helpers.PrintSuccess("Database reset successfully")
helpers.PrintInfo("You should now run <sudo kprobe api restart> to apply the changes")
helpers.PrintInfo("You should now run <sudo kprobe api restart> to apply some changes")
}
6 changes: 3 additions & 3 deletions cli/cmd/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func SetKeys(key string, value string) {
}

db.InsertValue("probe_name", value)
helpers.PrintInfo("You should now run <sudo kprobe api restart> to apply the changes")
helpers.PrintInfo("You should now run <sudo kprobe api restart> to apply some changes")

case "delete_after":
if len(value) < 1 || len(value) > 36500 {
Expand All @@ -95,15 +95,15 @@ func SetKeys(key string, value string) {
}

db.InsertValue("api_port", value)
helpers.PrintInfo("You should now run <sudo kprobe api restart> to apply the changes")
helpers.PrintInfo("You should now run <sudo kprobe api restart> to apply some changes")

case "editor_endpoint":
if value != "true" && value != "false" {
helpers.PrintError(true, "Editor endpoint must be true or false")
}

db.InsertValue("editor_endpoint", value)
helpers.PrintInfo("You should now run <sudo kprobe api restart> to apply the changes")
helpers.PrintInfo("You should now run <sudo kprobe api restart> to apply some changes")

case "ping_retries":
if len(value) < 1 || len(value) > 100 {
Expand Down
2 changes: 1 addition & 1 deletion scripts/installer.sh → scripts/install.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
## Tip: If you cannot run this script, try running `chmod +x installer.sh`
## Tip: If you cannot run this script, try running `chmod +x install.sh`

set -e

Expand Down
2 changes: 1 addition & 1 deletion scripts/uninstaller.sh → scripts/uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
## Tip: If you cannot run this script, try running `chmod +x uninstaller.sh`
## Tip: If you cannot run this script, try running `chmod +x uninstall.sh`

set -e

Expand Down

0 comments on commit 287c54f

Please sign in to comment.