Update crontab.py

This commit is contained in:
dami
2025-09-11 17:11:14 +08:00
parent bb41f89d44
commit 5e9e11694d
+1 -1
View File
@@ -526,7 +526,7 @@ echo "--------------------------------------------------------------------------
sys_name = mw.getOsName()
if sys_os == 'darwin':
file = '/etc/crontab'
elif sys_os.startswith("freebsd"):
elif sys_name.startswith("freebsd"):
file = '/var/cron/tabs/root'
elif sys_name.startswith("ubuntu"):
file = '/var/spool/cron/root'