usr/bin/custom/watchdog-monitor aktualisiert
This commit is contained in:
@@ -26,7 +26,7 @@ update_watchdog_config() {
|
||||
sudo sed -i '/^interval/d' "$config_file"
|
||||
|
||||
# Set interval
|
||||
echo "interval = 60" | sudo tee -a "$config_file" > /dev/null
|
||||
echo "interval = 59" | sudo tee -a "$config_file" > /dev/null
|
||||
|
||||
if [ ${#ip_array[@]} -eq 0 ]; then
|
||||
echo "No IP addresses found. Watchdog configuration cleared." >> "$log_file"
|
||||
|
||||
Reference in New Issue
Block a user