Compare commits
No commits in common. "f56e70f7846d316a6c7af3add250c811001cccc8" and "69c21482948b86d43465abce3dd097f707e1e92e" have entirely different histories.
f56e70f784
...
69c2148294
@ -19,18 +19,18 @@ Before using the script, you need to set the following configuration variables:
|
||||
|
||||
- `MESSAGE`: The content of the notification you want to send.
|
||||
|
||||
- `LOG_FILE`: The file where the logs will be stored. The default is `gotifyer.log`.
|
||||
- `LOG_FILE`: The file where the logs will be stored. The default is `gotify_notifications.log`.
|
||||
|
||||
## Usage
|
||||
1. Clone or download the script to your local machine.
|
||||
2. Open the script in a text editor and replace the configuration variables with your own values.
|
||||
3. Make the script executable:
|
||||
```bash
|
||||
chmod +x gotifyer.sh
|
||||
chmod +x gotify_notification.sh
|
||||
```
|
||||
4. Run the script:
|
||||
```bash
|
||||
./gotifyer.sh
|
||||
./gotify_notification.sh
|
||||
```
|
||||
|
||||
## How It Works
|
||||
|
||||
@ -8,7 +8,7 @@ MESSAGE="<YOUR_MESSAGE>"
|
||||
HOSTNAME=$(hostname) # Get the hostname of the machine
|
||||
TITLE="$HOSTNAME - $MESSAGE_TITLE" # Title with hostname prefixing the message
|
||||
PRIORITY=5 # Notification priority (1-5)
|
||||
LOG_FILE="gotifyer.log"
|
||||
LOG_FILE="gotify_notifications.log"
|
||||
|
||||
# Function to log messages
|
||||
log_message() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user