21 lines
400 B
Markdown
21 lines
400 B
Markdown
Make executable:
|
|
```
|
|
sudo chmod +x dccd.sh
|
|
```
|
|
Example:
|
|
```
|
|
./dccd.sh -b main -d /home/mafyuh/Auto-Homelab -p -f 'arrs'
|
|
```
|
|
Crontab:
|
|
```
|
|
*/30 * * * * /home/mafyuh/Auto-Homelab/scripts/dccd.sh -b main -d /home/mafyuh/Auto-Homelab -l /tmp/dccd.txt -p -f 'arrs'
|
|
```
|
|
View Logs:
|
|
```
|
|
cat /tmp/dccd.txt
|
|
```
|
|
Export Variables:
|
|
```
|
|
export GOTIFY_BASE_URL="https:go.example.com"
|
|
export GOTIFY_TOKEN="token"
|
|
```
|