Compare commits

..

2 Commits

Author SHA1 Message Date
Nick Hepler
f56e70f784 Update README. 2024-10-22 21:26:23 -04:00
Nick Hepler
7509d13931 Update default LOG_FILE variable. 2024-10-22 21:26:12 -04:00
2 changed files with 4 additions and 4 deletions

View File

@ -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 `gotify_notifications.log`.
- `LOG_FILE`: The file where the logs will be stored. The default is `gotifyer.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 gotify_notification.sh
chmod +x gotifyer.sh
```
4. Run the script:
```bash
./gotify_notification.sh
./gotifyer.sh
```
## How It Works

View File

@ -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="gotify_notifications.log"
LOG_FILE="gotifyer.log"
# Function to log messages
log_message() {