Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f073ddc906 | ||
|
|
3e00631925 |
@@ -54,7 +54,15 @@ def send_agent_update_task(pks, version):
|
||||
if agent.pendingactions.filter(
|
||||
action_type="agentupdate", status="pending"
|
||||
).exists():
|
||||
continue
|
||||
action = agent.pendingactions.filter(
|
||||
action_type="agentupdate", status="pending"
|
||||
).last()
|
||||
if pyver.parse(action.details["version"]) < pyver.parse(
|
||||
settings.LATEST_AGENT_VER
|
||||
):
|
||||
action.delete()
|
||||
else:
|
||||
continue
|
||||
|
||||
PendingAction.objects.create(
|
||||
agent=agent,
|
||||
@@ -122,7 +130,15 @@ def auto_self_agent_update_task():
|
||||
if agent.pendingactions.filter(
|
||||
action_type="agentupdate", status="pending"
|
||||
).exists():
|
||||
continue
|
||||
action = agent.pendingactions.filter(
|
||||
action_type="agentupdate", status="pending"
|
||||
).last()
|
||||
if pyver.parse(action.details["version"]) < pyver.parse(
|
||||
settings.LATEST_AGENT_VER
|
||||
):
|
||||
action.delete()
|
||||
else:
|
||||
continue
|
||||
|
||||
PendingAction.objects.create(
|
||||
agent=agent,
|
||||
|
||||
@@ -15,7 +15,7 @@ EXE_DIR = os.path.join(BASE_DIR, "tacticalrmm/private/exe")
|
||||
AUTH_USER_MODEL = "accounts.User"
|
||||
|
||||
# latest release
|
||||
TRMM_VERSION = "0.2.6"
|
||||
TRMM_VERSION = "0.2.7"
|
||||
|
||||
# bump this version everytime vue code is changed
|
||||
# to alert user they need to manually refresh their browser
|
||||
|
||||
Reference in New Issue
Block a user