summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-01-23 23:02:52 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:40 +0100
commit1a4ff3e443d5034ae8efadb0407904f1f51a519c (patch)
treec7838d5eaaff66228dfcf56228817e63e8da5bb5 /examples
parent6193ef2285f90e23b28fae5c1a43f7ffaa710f21 (diff)
downloadvyos-live-build-1a4ff3e443d5034ae8efadb0407904f1f51a519c.tar.gz
vyos-live-build-1a4ff3e443d5034ae8efadb0407904f1f51a519c.zip
Making sure that /tmp has the right permissions after installing sun-java*-doc through sun-java example hooks. Apparently, sun-java*-doc packages are tampering with it.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/hooks/sun-java5.sh4
-rwxr-xr-xexamples/hooks/sun-java6.sh4
2 files changed, 8 insertions, 0 deletions
diff --git a/examples/hooks/sun-java5.sh b/examples/hooks/sun-java5.sh
index e38ebaa32..139efd5ee 100755
--- a/examples/hooks/sun-java5.sh
+++ b/examples/hooks/sun-java5.sh
@@ -22,3 +22,7 @@
DEBIAN_FRONTEND="dialog" apt-get install --yes sun-java5-bin sun-java5-demo \
sun-java5-doc sun-java5-fonts sun-java5-jdk sun-java5-jre \
sun-java5-plugin sun-java5-source
+
+# Ensure that /tmp has the right permissions; apparently sun-java5-doc tampers
+# with it
+chmod 1777 /tmp
diff --git a/examples/hooks/sun-java6.sh b/examples/hooks/sun-java6.sh
index 71d5974b8..c86066fba 100755
--- a/examples/hooks/sun-java6.sh
+++ b/examples/hooks/sun-java6.sh
@@ -22,3 +22,7 @@
DEBIAN_FRONTEND="dialog" apt-get install --yes sun-java6-bin sun-java6-demo \
sun-java6-doc sun-java6-fonts sun-java6-jdk sun-java6-jre \
sun-java6-plugin sun-java6-source
+
+# Ensure that /tmp has the right permissions; apparently sun-java5-doc tampers
+# with it
+chmod 1777 /tmp