Update unifi_reboot.py

This commit is contained in:
2025-10-01 17:01:29 +00:00
parent 3b44a8adb7
commit 364185bee5
+3 -1
View File
@@ -6,7 +6,9 @@ import sys
# File with device list: "ip user password" # File with device list: "ip user password"
DEVICE_LIST = "unifi-devices.txt" DEVICE_LIST = "unifi-devices.txt"
LOGFILE = "unifi-reboot.log" LOGFILE = "unifi-reboot.log"
REBOOT_CMD = "/sbin/reboot" #REBOOT_CMD = "/sbin/reboot"
REBOOT_CMD = "ls -al"
def log(message): def log(message):
timestamp = datetime.datetime.now().strftime("[%Y-%m-%d %H:%M:%S]") timestamp = datetime.datetime.now().strftime("[%Y-%m-%d %H:%M:%S]")