Skip to content

Commit

Permalink
Minor docker fix and added icons for docker, lxc, proxmox.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Jul 14, 2024
1 parent a6334f6 commit 1f17efd
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 6 deletions.
18 changes: 12 additions & 6 deletions other/audit_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2230,15 +2230,19 @@ IFS="$NEWLINEIFS";
for line in $(docker ps -a --format "{{.ID}}\t{{.Names}}\t{{.Status}}" 2>/dev/null); do
vm_ident=$(echo "$line" | awk '{print $1}')
name=$(echo "$line" | awk '{print $2}')
status=$(echo "$line" | awk '{print $3}')
uuid=""
status=$(echo "$line" | awk '{print $4}')
uuid=$(echo "$line" | awk '{print $1}')
config_file=$(echo "$line" | awk '{print $3}')
uuid=$(echo "$line" | awk '{print $1}')
vm_result=$vm_result"
<item>
<vm_ident>$(escape_xml "$vm_ident")</vm_ident>
<name>$(escape_xml "$name")</name>
<status>$(escape_xml "$status")</status>
<uuid>$(escape_xml "$uuid")</uuid>
<type>docker</type>
<name>$(escape_xml "$name")</name>
<status>$(escape_xml "$status")</status>
<uuid>$(escape_xml "$uuid")</uuid>
<config_file>$(escape_xml "$config_file")</config_file>
<type>docker</type>
<icon>docker</icon>
</item>"
done
Expand Down Expand Up @@ -2277,6 +2281,7 @@ if [ -n "$guests" ]; then
<cpu_count>"$(escape_xml "$guest_cpu_count")"</cpu_count>
<config_file>"$(escape_xml "$guest_config_file")"</config_file>
<type>proxmox</type>
<icon>proxmox</icon>
</item>"
fi
done
Expand Down Expand Up @@ -2307,6 +2312,7 @@ if [ -n "$lxcguests" ]; then
<cpu_count>"$(escape_xml "$guest_cpu_count")"</cpu_count>
<config_file>"$(escape_xml "$guest_config_dir${guest_id}.conf")"</config_file>
<type>lxc</type>
<icon>lxc</icon>
</item>"
done
fi
Expand Down
14 changes: 14 additions & 0 deletions public/device_images/docker.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions public/device_images/lxc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/device_images/proxmox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1f17efd

Please sign in to comment.