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