Public Access
Update unifi_reboot.py
This commit is contained in:
+3
-1
@@ -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]")
|
||||||
|
|||||||
Reference in New Issue
Block a user