Skip to content

Commit

Permalink
Release 0.13.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Apr 25, 2022
2 parents 0999d98 + 9e544ad commit e3a66f0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
8 changes: 6 additions & 2 deletions api/tacticalrmm/apiv3/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ def get(self, request, agentid):
ret = {
"agent": agent.pk,
"check_interval": agent.check_interval,
"checks": CheckRunnerGetSerializer(checks, many=True).data,
"checks": CheckRunnerGetSerializer(
checks, context={"agent": agent}, many=True
).data,
}
return Response(ret)

Expand Down Expand Up @@ -216,7 +218,9 @@ def get(self, request, agentid):
ret = {
"agent": agent.pk,
"check_interval": agent.check_run_interval(),
"checks": CheckRunnerGetSerializer(run_list, many=True).data,
"checks": CheckRunnerGetSerializer(
run_list, context={"agent": agent}, many=True
).data,
}
return Response(ret)

Expand Down
3 changes: 2 additions & 1 deletion api/tacticalrmm/checks/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,9 @@ def get_script_args(self, obj):
if obj.check_type != "script":
return []

agent = self.context["agent"] if "agent" in self.context.keys() else obj.agent
return Script.parse_script_args(
agent=obj.agent, shell=obj.script.shell, args=obj.script_args
agent=agent, shell=obj.script.shell, args=obj.script_args
)

class Meta:
Expand Down
2 changes: 1 addition & 1 deletion api/tacticalrmm/tacticalrmm/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
AUTH_USER_MODEL = "accounts.User"

# latest release
TRMM_VERSION = "0.13.2"
TRMM_VERSION = "0.13.3"

# bump this version everytime vue code is changed
# to alert user they need to manually refresh their browser
Expand Down
7 changes: 0 additions & 7 deletions docker/containers/tactical-meshcentral/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,6 @@ EOF
)"

echo "${mesh_config}" > /home/node/app/meshcentral-data/config.json

else
# replace persistent mesh configuration with new ports
sed -i 's/"Port": 443/"Port": 4443/' /home/node/app/meshcentral-data/config.json
sed -i 's/"RedirPort": 80/"RedirPort": 8080/' /home/node/app/meshcentral-data/config.json
sed -i "s/\"CertUrl\": \".*\"/\"CertUrl\": \"https:\/\/${NGINX_HOST_IP}:${NGINX_HOST_PORT}\"/" /home/node/app/meshcentral-data/config.json

fi

node node_modules/meshcentral --createaccount ${MESH_USER} --pass ${MESH_PASS} --email example@example.com
Expand Down

0 comments on commit e3a66f0

Please sign in to comment.