summaryrefslogtreecommitdiffstats
path: root/hosts/logi1/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/logi1/postinst')
-rw-r--r--hosts/logi1/postinst4
1 files changed, 4 insertions, 0 deletions
diff --git a/hosts/logi1/postinst b/hosts/logi1/postinst
index 4ed9153..95c813e 100644
--- a/hosts/logi1/postinst
+++ b/hosts/logi1/postinst
@@ -105,6 +105,10 @@ Section "Device"
EndSection
EOF
+# Increase ImageMagick resource limits.
+install -u 0 -g 0 -m 0644 "$(dirname "${0}")/hosts/${host}/im6-policy.xml" \
+ "${target}/etc/ImageMagick-6/policy.xml"
+
# Add user to groups created by postinst_pkgs.
in_target adduser pj scanner || return 1
in_target adduser pj wireshark || return 1