summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-18 10:39:59 +0100
committerSimon Rettberg2019-03-18 10:39:59 +0100
commita26c70a004b24d9385a13d7b9e3f3f1295e5e1c2 (patch)
tree014254b2c594705fa69e81f5e0df47be4004096f
parent[SSPS] firstrun_script.sh now writes id_rsa-ssh-key for root, if (diff)
downloadsetup-scripts-a26c70a004b24d9385a13d7b9e3f3f1295e5e1c2.tar.gz
setup-scripts-a26c70a004b24d9385a13d7b9e3f3f1295e5e1c2.tar.xz
setup-scripts-a26c70a004b24d9385a13d7b9e3f3f1295e5e1c2.zip
[SSPS/SSUS] Disable java accessibility helper
-rw-r--r--satellit_installer/includes/90-patch_misc_files.inc5
-rwxr-xr-xsatellit_installer/satellit_installer2
-rw-r--r--satellit_upgrader/updater.template.sh6
3 files changed, 13 insertions, 0 deletions
diff --git a/satellit_installer/includes/90-patch_misc_files.inc b/satellit_installer/includes/90-patch_misc_files.inc
index 1edf931..bbb3895 100644
--- a/satellit_installer/includes/90-patch_misc_files.inc
+++ b/satellit_installer/includes/90-patch_misc_files.inc
@@ -34,3 +34,8 @@ patch_ldapsearch() {
echo "TLS_REQCERT never" >> /etc/ldap/ldap.conf
}
+patch_java() {
+ # Fix svg renderer:
+ # java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
+ sed -i -e '/^assistive_technologies=/s/^/#/' /etc/java-*-openjdk/accessibility.properties &> /dev/null
+}
diff --git a/satellit_installer/satellit_installer b/satellit_installer/satellit_installer
index 84f131a..b252d6b 100755
--- a/satellit_installer/satellit_installer
+++ b/satellit_installer/satellit_installer
@@ -135,6 +135,8 @@ write_tmate_config # here or elsewhere...
patch_ldapsearch
+patch_java
+
write_apt_config
install_bwSuite_server "$DMSDDIR"
diff --git a/satellit_upgrader/updater.template.sh b/satellit_upgrader/updater.template.sh
index 4d70f2b..7a3322a 100644
--- a/satellit_upgrader/updater.template.sh
+++ b/satellit_upgrader/updater.template.sh
@@ -697,6 +697,12 @@ count=0
[ "$count" -gt 7 ] && break
done
+# ************************** Misc stuff ********************
+# This fixes kitfox svg, namely this exception you'd get with
+# the headless openjdk install:
+# java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
+sed -i -e '/^assistive_technologies=/s/^/#/' /etc/java-*-openjdk/accessibility.properties &> /dev/null
+
# ************************** LIGHTY ************************
if [ -n "$RESTART_LIGHTY" ]; then
count=0